aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/r8169.c7
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);