]> git.baikalelectronics.ru Git - kernel.git/commit
r8169: check ALDPS bit and disable it if enabled for the 8168g
authorDavid Chang <dchang@suse.com>
Wed, 27 Nov 2013 07:48:36 +0000 (15:48 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 29 Nov 2013 21:16:39 +0000 (16:16 -0500)
commite1eba08bc0eac3ed7f1d3d19f8d55317b76c7eb6
tree06472ba6f55cff0ac3355891b18f453e3e59b25b
parent6248cfae4674cde0df9f8f059e29f86060c6f765
r8169: check ALDPS bit and disable it if enabled for the 8168g

Windows driver will enable ALDPS function, but linux driver and firmware
do not have any configuration related to ALDPS function for 8168g.
So restart system to linux and remove the NIC cable, LAN enter ALDPS,
then LAN RX will be disabled.

This issue can be easily reproduced on dual boot windows and linux
system with RTL_GIGA_MAC_VER_40 chip.

Realtek said, ALDPS function can be disabled by configuring to PHY,
switch to page 0x0A43, reg0x10 bit2=0.

Signed-off-by: David Chang <dchang@suse.com>
Acked-by: Hayes Wang <hayeswang@realtek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/realtek/r8169.c