Skip to content

Commit da7c186

Browse files
Russell Kingdavem330
authored andcommitted
phylink: add in-band autonegotiation support for 10GBase-KR mode.
Add in-band autonegotation support for 10GBase-KR mode. Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent ecbd87b commit da7c186

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

drivers/net/phy/phylink.c

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,23 @@ static int phylink_parse_mode(struct phylink *pl, struct device_node *np)
266266
pl->link_an_mode = MLO_AN_8023Z;
267267
break;
268268

269+
case PHY_INTERFACE_MODE_10GKR:
270+
phylink_set(pl->supported, 10baseT_Half);
271+
phylink_set(pl->supported, 10baseT_Full);
272+
phylink_set(pl->supported, 100baseT_Half);
273+
phylink_set(pl->supported, 100baseT_Full);
274+
phylink_set(pl->supported, 1000baseT_Half);
275+
phylink_set(pl->supported, 1000baseT_Full);
276+
phylink_set(pl->supported, 1000baseX_Full);
277+
phylink_set(pl->supported, 10000baseKR_Full);
278+
phylink_set(pl->supported, 10000baseCR_Full);
279+
phylink_set(pl->supported, 10000baseSR_Full);
280+
phylink_set(pl->supported, 10000baseLR_Full);
281+
phylink_set(pl->supported, 10000baseLRM_Full);
282+
phylink_set(pl->supported, 10000baseER_Full);
283+
pl->link_an_mode = MLO_AN_SGMII;
284+
break;
285+
269286
default:
270287
netdev_err(pl->netdev,
271288
"incorrect link mode %s for in-band status\n",

0 commit comments

Comments
 (0)