]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
net: dsa: mv88e6xxx: add PHYLINK support
authorRussell King <rmk+kernel@armlinux.org.uk>
Thu, 10 May 2018 20:17:35 +0000 (13:17 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 11 May 2018 16:03:06 +0000 (12:03 -0400)
commitc9a2356f35409a667429254bc326b10f92c7ecce
treeecf4146156148a3305e55b1157cca9422c889213
parentc4aef9fc0d4b1d497c2f2973e3f123bcb96d6bbc
net: dsa: mv88e6xxx: add PHYLINK support

Add rudimentary phylink support to mv88e6xxx. This allows the driver
using user ports with fixed links to keep operating normally. User ports
with normal PHYs are not affected since the switch automatically manages
their link parameters. User facing ports which use a SFP/SFF with a
non-fixed link mode might require a call to phylink_mac_change() to
operate properly.

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
[Andrew: fixed link setting after adding link polling]
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
[florian: expand commit message]
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx/chip.c
drivers/net/dsa/mv88e6xxx/port.c
drivers/net/dsa/mv88e6xxx/port.h