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
1919 goto out;1919 goto out;
1920 }1920 }
1921 1921
1922 if (dev->phydev->autoneg == AUTONEG_DISABLE ||
1923 dev->phydev->duplex != DUPLEX_FULL) {
1924 ret = -EPROTONOSUPPORT;
1925 goto out;
1926 }
1927
1928 ret = phy_ethtool_set_eee(tp->phydev, data);1922 ret = phy_ethtool_set_eee(tp->phydev, data);
1929 1923
1930 if (!ret)1924 if (!ret)