diff options
author | hayeswang <hayeswang@realtek.com> | 2014-10-06 10:36:04 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-10-06 17:51:38 -0400 |
commit | 9d31a7b9f9963e97e067e72ef13492e6ace7d345 (patch) | |
tree | 5e0636ee40cc7e208e6e9346c12217ff485d7bdf /drivers | |
parent | b47bd8d2795412143a23d2961033c126ce6914d9 (diff) |
r8152: nway reset after setting eee
Restart autonegotiation is necessary after setting EEE.
Signed-off-by: Hayes Wang <hayeswang@realtek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/usb/r8152.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c index b9a98152815..65326204baa 100644 --- a/drivers/net/usb/r8152.c +++ b/drivers/net/usb/r8152.c @@ -3471,6 +3471,8 @@ rtl_ethtool_set_eee(struct net_device *net, struct ethtool_eee *edata) goto out; ret = tp->rtl_ops.eee_set(tp, edata); + if (!ret) + ret = mii_nway_restart(&tp->mii); usb_autopm_put_interface(tp->intf); |