]> asedeno.scripts.mit.edu Git - linux.git/commit
phylink: add helper for configuring 2500BaseX modes
authorRussell King <rmk+kernel@armlinux.org.uk>
Thu, 9 Aug 2018 13:38:38 +0000 (15:38 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 Aug 2018 18:08:19 +0000 (11:08 -0700)
commit624c0f0239f04cce78c86afa95eb2841c84fbab1
tree016e270789980671fbf68294802d44f42925d996
parent54186b91bde1711080d0b23ce25f0bee5a058fc9
phylink: add helper for configuring 2500BaseX modes

Add a helper for MAC drivers to use in their validate callback to deal
with 2500BaseX vs 1000BaseX modes, where the hardware supports both
but it is not possible to automatically select between them.

This helper defaults to 1000BaseX, as that is the 802.3 standard, and
will allow users to select 2500BaseX either by forcing the speed if
AN is disabled, or by changing the advertising mask if AN is enabled.
Disabling AN is not recommended as it is only the speed that we're
interested in controlling, not the duplex or pause mode parameters.

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phylink.c
include/linux/phylink.h