OSDN Git Service

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)
commiteba54cbb92d28b4f6dc1ed5f73f5187b09d82c08
treee9736a4be9c888c90ac6f2c9720d4093dcb79849
parent0181f6f19c6c35b24f1516d8db22f3bbce762633
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