dsa: lan9303: Port 0 is xMII port
authorJerry Ray <jerry.ray@microchip.com>
Tue, 17 Jan 2023 20:57:01 +0000 (14:57 -0600)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Jan 2023 08:53:13 +0000 (08:53 +0000)
commit56e23d91bcfda607f928105b5c403a4bed415743
tree660907be33623c267858c0d859e14312a0f98067
parentde375aa860fb848eaabc76dce0af2e982630b421
dsa: lan9303: Port 0 is xMII port

In preparing to move the adjust_link logic into the phylink_mac_link_up
api, change the macro used to check for the cpu port. In
phylink_mac_link_up, the phydev pointer passed in for the CPU port is
NULL, so we can't keep using phy_is_pseudo_fixed_link(phydev).

Signed-off-by: Jerry Ray <jerry.ray@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/lan9303-core.c