Commit 9d31a7b9 authored by hayeswang's avatar hayeswang Committed by David S. Miller

r8152: nway reset after setting eee

Restart autonegotiation is necessary after setting EEE.
Signed-off-by: default avatarHayes Wang <hayeswang@realtek.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b47bd8d2
...@@ -3471,6 +3471,8 @@ rtl_ethtool_set_eee(struct net_device *net, struct ethtool_eee *edata) ...@@ -3471,6 +3471,8 @@ rtl_ethtool_set_eee(struct net_device *net, struct ethtool_eee *edata)
goto out; goto out;
ret = tp->rtl_ops.eee_set(tp, edata); ret = tp->rtl_ops.eee_set(tp, edata);
if (!ret)
ret = mii_nway_restart(&tp->mii);
usb_autopm_put_interface(tp->intf); usb_autopm_put_interface(tp->intf);
......
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