net: phy: phylink: Provide PHY interface to mac_link_{up, down}
authorFlorian Fainelli <f.fainelli@gmail.com>
Wed, 28 Mar 2018 22:44:15 +0000 (15:44 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 30 Mar 2018 14:11:06 +0000 (10:11 -0400)
commitc6ab3008b6a6ecda22e92f96a1b9cc6b0d0b0a4e
treee6f297c635422cc8e59b12377f932950e5409ac0
parent2166dc95717d982d359b616b1acbb3d28f48c494
net: phy: phylink: Provide PHY interface to mac_link_{up, down}

In preparation for having DSA transition entirely to PHYLINK, we need to pass a
PHY interface type to the mac_link_{up,down} callbacks because we may have to
make decisions on that (e.g: turn on/off RGMII interfaces etc.). We do not pass
an entire phylink_link_state because not all parameters (pause, duplex etc.) are
defined when the link is down, only link and interface are.

Update mvneta accordingly since it currently implements phylink_mac_ops.

Acked-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Acked-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvneta.c
drivers/net/phy/phylink.c
include/linux/phylink.h