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
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