Commit bb703e57 authored by Heiner Kallweit's avatar Heiner Kallweit Committed by Jakub Kicinski

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: default avatarHeiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent a46604d7
...@@ -4892,7 +4892,7 @@ static void rtl_shutdown(struct pci_dev *pdev) ...@@ -4892,7 +4892,7 @@ static void rtl_shutdown(struct pci_dev *pdev)
rtl_wol_shutdown_quirk(tp); rtl_wol_shutdown_quirk(tp);
} }
pci_wake_from_d3(pdev, true); pci_wake_from_d3(pdev, tp->saved_wolopts);
pci_set_power_state(pdev, PCI_D3hot); pci_set_power_state(pdev, PCI_D3hot);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment