]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: mscc: ocelot: mark the phy-mode for internal PHY ports
authorVladimir Oltean <vladimir.oltean@nxp.com>
Thu, 19 Aug 2021 17:04:16 +0000 (20:04 +0300)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Sat, 21 Aug 2021 08:38:48 +0000 (10:38 +0200)
commit4799f97c6e82b2036f00f151f64eb62538375584
treee9736a4be9c888c90ac6f2c9720d4093dcb79849
parentf522c85e10b9ad44c72e6fd49bfce9d3235bdfe0
MIPS: mscc: ocelot: mark the phy-mode for internal PHY ports

The ocelot driver was converted to phylink, and that expects a valid
phy_interface_t. Without a phy-mode, of_get_phy_mode returns
PHY_INTERFACE_MODE_NA, which is not ideal because phylink rejects that.

The ocelot driver was patched to treat PHY_INTERFACE_MODE_NA as
PHY_INTERFACE_MODE_INTERNAL to work with the broken DT blobs, but we
should fix the device trees and specify the phy-mode too.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/boot/dts/mscc/ocelot_pcb120.dts
arch/mips/boot/dts/mscc/ocelot_pcb123.dts