mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-06 14:48:06 +00:00
r8169: enable WAKE_PHY as only WoL source when runtime-suspending
We go to runtime-suspend few secs after cable removal. As cable is removed "physical link up" is the only meaningful WoL source. Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
27dc36aefc
commit
01bd753d03
1 changed files with 1 additions and 1 deletions
|
@ -4884,7 +4884,7 @@ static int rtl8169_runtime_suspend(struct device *device)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
rtl_lock_work(tp);
|
rtl_lock_work(tp);
|
||||||
__rtl8169_set_wol(tp, WAKE_ANY);
|
__rtl8169_set_wol(tp, WAKE_PHY);
|
||||||
rtl_unlock_work(tp);
|
rtl_unlock_work(tp);
|
||||||
|
|
||||||
rtl8169_net_suspend(tp);
|
rtl8169_net_suspend(tp);
|
||||||
|
|
Loading…
Add table
Reference in a new issue