Skip to content

Commit 01bd753

Browse files
hkallweitdavem330
authored andcommitted
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 27dc36a commit 01bd753

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/realtek/r8169_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4884,7 +4884,7 @@ static int rtl8169_runtime_suspend(struct device *device)
48844884
return 0;
48854885

48864886
rtl_lock_work(tp);
4887-
__rtl8169_set_wol(tp, WAKE_ANY);
4887+
__rtl8169_set_wol(tp, WAKE_PHY);
48884888
rtl_unlock_work(tp);
48894889

48904890
rtl8169_net_suspend(tp);

0 commit comments

Comments
 (0)