diff options
author | Hayes Wang <hayeswang@realtek.com> | 2011-07-06 03:58:08 -0400 |
---|---|---|
committer | Francois Romieu <romieu@fr.zoreil.com> | 2011-07-14 17:22:53 -0400 |
commit | aaa89c08d9ffa3739c93d65d98b73ec2aa2e93a5 (patch) | |
tree | e0a19f6faec27d0fdb9634cd419f38e2f125deca /drivers/net/r8169.c | |
parent | d4ed95d796e5126bba51466dc07e287cebc8bd19 (diff) |
r8169: don't enable rx when shutdown.
Only 8111b needs to enable rx when shutdowning with WoL.
Signed-off-by: Hayes Wang <hayeswang@realtek.com>
Acked-by: Francois Romieu <romieu@fr.zoreil.com>
Diffstat (limited to 'drivers/net/r8169.c')
-rw-r--r-- | drivers/net/r8169.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/net/r8169.c b/drivers/net/r8169.c index 1d2508834415..6d7f686383fc 100644 --- a/drivers/net/r8169.c +++ b/drivers/net/r8169.c | |||
@@ -5729,8 +5729,11 @@ static void rtl_shutdown(struct pci_dev *pdev) | |||
5729 | spin_unlock_irq(&tp->lock); | 5729 | spin_unlock_irq(&tp->lock); |
5730 | 5730 | ||
5731 | if (system_state == SYSTEM_POWER_OFF) { | 5731 | if (system_state == SYSTEM_POWER_OFF) { |
5732 | /* WoL fails with some 8168 when the receiver is disabled. */ | 5732 | /* WoL fails with 8168b when the receiver is disabled. */ |
5733 | if (tp->features & RTL_FEATURE_WOL) { | 5733 | if ((tp->mac_version == RTL_GIGA_MAC_VER_11 || |
5734 | tp->mac_version == RTL_GIGA_MAC_VER_12 || | ||
5735 | tp->mac_version == RTL_GIGA_MAC_VER_17) && | ||
5736 | (tp->features & RTL_FEATURE_WOL)) { | ||
5734 | pci_clear_master(pdev); | 5737 | pci_clear_master(pdev); |
5735 | 5738 | ||
5736 | RTL_W8(ChipCmd, CmdRxEnb); | 5739 | RTL_W8(ChipCmd, CmdRxEnb); |