Skip to content

Commit

Permalink
r8169: enable WAKE_PHY as only WoL source when runtime-suspending
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Heiner Kallweit authored and David S. Miller committed May 31, 2020
1 parent 27dc36a commit 01bd753
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/realtek/r8169_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -4884,7 +4884,7 @@ static int rtl8169_runtime_suspend(struct device *device)
return 0;

rtl_lock_work(tp);
__rtl8169_set_wol(tp, WAKE_ANY);
__rtl8169_set_wol(tp, WAKE_PHY);
rtl_unlock_work(tp);

rtl8169_net_suspend(tp);
Expand Down

0 comments on commit 01bd753

Please sign in to comment.