OSDN Git Service

r8169: fix WoL device wakeup enable
authorHeiner Kallweit <hkallweit1@gmail.com>
Sun, 30 Dec 2018 12:16:12 +0000 (13:16 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Jan 2019 16:38:36 +0000 (17:38 +0100)
commit648458fe97b5c0630435fa2b2cd65ba57ceb18e0
tree1ee9c295844f50ca5273cbc5cf5346ed9d09fd8d
parente4a2ffe9029fd3e40513b1949b225d180900ef4e
r8169: fix WoL device wakeup enable

[ Upstream commit 3bd8264511035dc97c902f03fa9f1d07f95f8f62 ]

In rtl8169_runtime_resume() we configure WoL but don't set the device
to wakeup-enabled. This prevents PME generation once the cable is
re-plugged. Fix this by moving the call to device_set_wakeup_enable()
to __rtl8169_set_wol().

Fixes: 433f9d0ddcc6 ("r8169: improve saved_wolopts handling")
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/realtek/r8169.c