From 9d31a7b9f9963e97e067e72ef13492e6ace7d345 Mon Sep 17 00:00:00 2001 From: hayeswang Date: Mon, 6 Oct 2014 10:36:04 +0800 Subject: [PATCH] r8152: nway reset after setting eee Restart autonegotiation is necessary after setting EEE. Signed-off-by: Hayes Wang Signed-off-by: David S. Miller --- drivers/net/usb/r8152.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c index b9a98152815b..65326204baa0 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); -- 2.20.1