Skip to content

Commit cb6402f

Browse files
lunndavem330
authored andcommitted
net: phy: Add support for resolving 5G and 2.5G autoneg
Now that 2.5G and 5G can be represented in phydev->advertising and phydev->lp_advertising, add these two links modes as possible resolutions to auto negotiation. Signed-off-by: Andrew Lunn <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 3c6b59d commit cb6402f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

drivers/net/phy/phy-core.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,14 @@ void phy_resolve_aneg_linkmode(struct phy_device *phydev)
359359
if (linkmode_test_bit(ETHTOOL_LINK_MODE_10000baseT_Full_BIT, common)) {
360360
phydev->speed = SPEED_10000;
361361
phydev->duplex = DUPLEX_FULL;
362+
} else if (linkmode_test_bit(ETHTOOL_LINK_MODE_5000baseT_Full_BIT,
363+
common)) {
364+
phydev->speed = SPEED_5000;
365+
phydev->duplex = DUPLEX_FULL;
366+
} else if (linkmode_test_bit(ETHTOOL_LINK_MODE_2500baseT_Full_BIT,
367+
common)) {
368+
phydev->speed = SPEED_2500;
369+
phydev->duplex = DUPLEX_FULL;
362370
} else if (linkmode_test_bit(ETHTOOL_LINK_MODE_1000baseT_Full_BIT,
363371
common)) {
364372
phydev->speed = SPEED_1000;

0 commit comments

Comments
 (0)