Skip to content

Commit aaa89c0

Browse files
hayesorzFrancois Romieu
authored andcommitted
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>
1 parent d4ed95d commit aaa89c0

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

drivers/net/r8169.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5729,8 +5729,11 @@ static void rtl_shutdown(struct pci_dev *pdev)
57295729
spin_unlock_irq(&tp->lock);
57305730

57315731
if (system_state == SYSTEM_POWER_OFF) {
5732-
/* WoL fails with some 8168 when the receiver is disabled. */
5733-
if (tp->features & RTL_FEATURE_WOL) {
5732+
/* WoL fails with 8168b when the receiver is disabled. */
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)) {
57345737
pci_clear_master(pdev);
57355738

57365739
RTL_W8(ChipCmd, CmdRxEnb);

0 commit comments

Comments
 (0)