EEE requires aneg and full duplex, therefore return EPROTONOSUPPORT
if aneg is disabled or aneg resulted in a half duplex mode.

Heiner Kallweit (2):
  net: phy: check for aneg disabled and half duplex in
    phy_ethtool_set_eee
  r8169: rely on sanity checks in phy_ethtool_set_eee

 drivers/net/ethernet/realtek/r8169_main.c | 6 ------
 drivers/net/phy/phy.c                     | 3 +++
 2 files changed, 3 insertions(+), 6 deletions(-)

-- 
2.26.2

Reply via email to