Thread (9 messages) 9 messages, 4 authors, 2013-11-29

RE: [PATCH net] r8169: check ALDPS bit and disable it if enabled for the 8168g

From: hayeswang <hidden>
Date: 2013-11-28 03:37:35

 David Chang [mailto:dchang@suse.com] 
Sent: Wednesday, November 27, 2013 3:49 PM
To: netdev@vger.kernel.org
Cc: David S. Miller; Francois Romieu; Hayeswang; jlee@suse.com
Subject: [PATCH net] r8169: check ALDPS bit and disable it if 
enabled for the 8168g
[...]
+	/* Check ALDPS bit, disable it if enabled */
+	rtl_writephy(tp, 0x1f, 0x0a43);
+	if (rtl_readphy(tp, 0x10) & 0x0004)
+		rtl_w1w0_phy(tp, 0x10, 0x0000, 0x0004);
+
You have to delay at least 10 ms after disable it.
This makes sure the hw completes the action.
 
Best Regards,
Hayes
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help