]> 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)
commit574f3dd4c5ef6857a9e3277d1d077750f6d72c27
tree06472ba6f55cff0ac3355891b18f453e3e59b25b
parentc0290abc10385e6885342b4ede69fcafcb944098
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