History

r8169: remove not needed checks in rtl8169_set_eee

After 9de5d235b60a ("net: phy: fix aneg restart in phy_ethtool_set_eee") we don't need the check for aneg being enabled any longer, and as discussed with Russell configuring the EEE advertisement should be supported even if we're in a half-duplex mode currently.

Heiner Kallweit committed 6 years ago

Commit aa443b31 parent b014d041 file · +0 −6Browse files

Unified · Split

drivers/net/ethernet/realtek/r8169_main.c+0−6
@@ -1919,12 +1919,6 @@ static int rtl8169_set_eee(struct net_device *dev, struct ethtool_eee *data) · 1918 unmodified lines
19191919 goto out;
19201920 }
19211921
1922− if (dev->phydev->autoneg == AUTONEG_DISABLE ||
1923− dev->phydev->duplex != DUPLEX_FULL) {
1924− ret = -EPROTONOSUPPORT;
1925− goto out;
1926− }
1927−
19281922 ret = phy_ethtool_set_eee(tp->phydev, data);
19291923
19301924 if (!ret)