Commit aa443b3f authored by Heiner Kallweit's avatar Heiner Kallweit Committed by David S. Miller

r8169: remove not needed checks in rtl8169_set_eee

After 9de5d235 ("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.
Signed-off-by: default avatarHeiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b014d043
...@@ -1919,12 +1919,6 @@ static int rtl8169_set_eee(struct net_device *dev, struct ethtool_eee *data) ...@@ -1919,12 +1919,6 @@ static int rtl8169_set_eee(struct net_device *dev, struct ethtool_eee *data)
goto out; goto out;
} }
if (dev->phydev->autoneg == AUTONEG_DISABLE ||
dev->phydev->duplex != DUPLEX_FULL) {
ret = -EPROTONOSUPPORT;
goto out;
}
ret = phy_ethtool_set_eee(tp->phydev, data); ret = phy_ethtool_set_eee(tp->phydev, data);
if (!ret) if (!ret)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment