Skip to content

Commit bb703e5

Browse files
hkallweitkuba-moo
authored andcommitted
r8169: don't wakeup-enable device on shutdown if WOL is disabled
If WOL isn't enabled, then there's no need to enable wakeup from D3 on system shutdown. Signed-off-by: Heiner Kallweit <[email protected]> Signed-off-by: Jakub Kicinski <[email protected]>
1 parent a46604d commit bb703e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/realtek/r8169_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4892,7 +4892,7 @@ static void rtl_shutdown(struct pci_dev *pdev)
48924892
rtl_wol_shutdown_quirk(tp);
48934893
}
48944894

4895-
pci_wake_from_d3(pdev, true);
4895+
pci_wake_from_d3(pdev, tp->saved_wolopts);
48964896
pci_set_power_state(pdev, PCI_D3hot);
48974897
}
48984898
}

0 commit comments

Comments
 (0)