diff options
author | Heiner Kallweit <hkallweit1@gmail.com> | 2021-01-08 15:00:13 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2021-01-10 05:07:53 +0300 |
commit | bb703e5781d6a3bada3bb8a3f7c5200471094ff5 (patch) | |
tree | 258cc75adf5d90ef069617362aa1ccd5b64aacc5 /drivers/net/ethernet/realtek | |
parent | a46604d7ce491cb3f859c02d0e21b6d937121793 (diff) | |
download | linux-bb703e5781d6a3bada3bb8a3f7c5200471094ff5.tar.xz |
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 <hkallweit1@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/ethernet/realtek')
-rw-r--r-- | drivers/net/ethernet/realtek/r8169_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/realtek/r8169_main.c b/drivers/net/ethernet/realtek/r8169_main.c index 755767b7e7e7..f06e130512a8 100644 --- a/drivers/net/ethernet/realtek/r8169_main.c +++ b/drivers/net/ethernet/realtek/r8169_main.c @@ -4892,7 +4892,7 @@ static void rtl_shutdown(struct pci_dev *pdev) 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); } } |