linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next] r8152: nway reset after setting eee
@ 2014-10-02  8:01 Hayes Wang
  2014-10-03 22:08 ` David Miller
  2014-10-06  2:36 ` [PATCH net-next v2] " Hayes Wang
  0 siblings, 2 replies; 4+ messages in thread
From: Hayes Wang @ 2014-10-02  8:01 UTC (permalink / raw)
  To: netdev; +Cc: nic_swsd, linux-kernel, linux-usb, Hayes Wang

Restart autonegotiation is necessary after setting EEE.

Signed-off-by: Hayes Wang <hayeswang@realtek.com>
---
 drivers/net/usb/r8152.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c
index a4d4c4a..e4dcfc1 100644
--- a/drivers/net/usb/r8152.c
+++ b/drivers/net/usb/r8152.c
@@ -3480,6 +3480,9 @@ rtl_ethtool_set_eee(struct net_device *net, struct ethtool_eee *edata)
 
 	ret = tp->rtl_ops.eee_set(tp, edata);
 
+	if (ret == 0)
+		ret = mii_nway_restart(&tp->mii);
+
 	usb_autopm_put_interface(tp->intf);
 
 out:
-- 
1.9.3


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-10-06 21:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-02  8:01 [PATCH net-next] r8152: nway reset after setting eee Hayes Wang
2014-10-03 22:08 ` David Miller
2014-10-06  2:36 ` [PATCH net-next v2] " Hayes Wang
2014-10-06 21:51   ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).