Commit 01bd753d authored by Heiner Kallweit's avatar Heiner Kallweit Committed by David S. Miller

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: default avatarHeiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 27dc36ae
...@@ -4884,7 +4884,7 @@ static int rtl8169_runtime_suspend(struct device *device) ...@@ -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);
......
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