]> 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)
committerKishon Vijay Abraham I <kishon@ti.com>
Thu, 20 Feb 2020 12:36:57 +0000 (18:06 +0530)
commitbf395ec341e2697ba989e40cde90e0fff0196733
tree39cd12e7e26800c1243ce0012ae3c72612f1b2f6
parentf7e881542f9b7fc9ac785bacef1c87f44353f471
phy: ti: gmii-sel: fix set of copy-paste errors

- 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>
drivers/phy/ti/phy-gmii-sel.c