We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e540e3b commit d4c8976Copy full SHA for d4c8976
drivers/net/phy/phy.c
@@ -1089,7 +1089,10 @@ int phy_ethtool_ksettings_set(struct phy_device *phydev,
1089
if (autoneg != AUTONEG_ENABLE && autoneg != AUTONEG_DISABLE)
1090
return -EINVAL;
1091
1092
- if (autoneg == AUTONEG_ENABLE && linkmode_empty(advertising))
+ if (autoneg == AUTONEG_ENABLE &&
1093
+ (linkmode_empty(advertising) ||
1094
+ !linkmode_test_bit(ETHTOOL_LINK_MODE_Autoneg_BIT,
1095
+ phydev->supported)))
1096
1097
1098
if (autoneg == AUTONEG_DISABLE &&
0 commit comments