summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@armlinux.org.uk>2017-12-01 13:24:32 +0300
committerDavid S. Miller <davem@davemloft.net>2017-12-05 19:16:18 +0300
commit4336c40113ff8fe89b0d09e0f2eb6fc4e0816b11 (patch)
treea4788f033e56d2f5021c480d7a30d28630a62df4
parent86a362c49f3c0ba72f2e9217c704e10959c54bec (diff)
downloadlinux-4336c40113ff8fe89b0d09e0f2eb6fc4e0816b11.tar.xz
phylink: add support for 2500baseX and 10GbaseKR
Add support for handling the faster 2.5G and 10G link modes when used with SFP modules. Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/phy/phylink.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/phy/phylink.c b/drivers/net/phy/phylink.c
index 34ecdb892f57..06c6ad0603ac 100644
--- a/drivers/net/phy/phylink.c
+++ b/drivers/net/phy/phylink.c
@@ -1352,6 +1352,8 @@ static int phylink_sfp_module_insert(void *upstream,
switch (iface) {
case PHY_INTERFACE_MODE_SGMII:
case PHY_INTERFACE_MODE_1000BASEX:
+ case PHY_INTERFACE_MODE_2500BASEX:
+ case PHY_INTERFACE_MODE_10GKR:
mode = MLO_AN_INBAND;
break;
default: