From: hayeswang Date: Mon, 6 Oct 2014 02:36:04 +0000 (+0800) Subject: r8152: nway reset after setting eee X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9d31a7b9f9963e97e067e72ef13492e6ace7d345;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git r8152: nway reset after setting eee Restart autonegotiation is necessary after setting EEE. Signed-off-by: Hayes Wang Signed-off-by: David S. Miller --- 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);