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)
commiteefed634eb61e4094b9fb8183cb8d43b26838517
tree39cd12e7e26800c1243ce0012ae3c72612f1b2f6
parent1d7cb11e1090526bc714cda98ca3484c3b30ff76
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