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.
Unified · Split
| @@ -1919,12 +1919,6 @@ static int rtl8169_set_eee(struct net_device *dev, struct ethtool_eee *data) · 1918 unmodified lines | ||
| 1919 | 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 | 1922 | ret = phy_ethtool_set_eee(tp->phydev, data); |
| 1929 | 1923 | |
| 1930 | 1924 | if (!ret) |