]> git.baikalelectronics.ru Git - kernel.git/commit
phy: ti: gmii-sel: fix set of copy-paste errors
authorGrygorii Strashko <grygorii.strashko@ti.com>
Fri, 14 Feb 2020 19:08:00 +0000 (21:08 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Mar 2020 07:25:42 +0000 (08:25 +0100)
commit4a177bbf6b57e4b7785aae1f76ee7c4a58c991c0
tree23659d4abbf466aa54606426e668be6fe6e454dd
parentf315f10dc9c3b76d2f82d1c23bfd22b24c091bf8
phy: ti: gmii-sel: fix set of copy-paste errors

[ Upstream commit bf395ec341e2697ba989e40cde90e0fff0196733 ]

- under PHY_INTERFACE_MODE_MII the 'mode' func parameter is assigned
instead of 'gmii_sel_mode' and it's working only because the default value
'gmii_sel_mode' is set to 0.

- console outputs use 'rgmii_id' and 'mode' values to print PHY mode
instead of using 'submode' value which is representing PHY interface mode
now.

This patch fixes above two cases.

Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/phy/ti/phy-gmii-sel.c