r8169: enable WAKE_PHY as only WoL source when runtime-suspending
authorHeiner Kallweit <hkallweit1@gmail.com>
Sat, 30 May 2020 21:55:30 +0000 (23:55 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 31 May 2020 04:36:55 +0000 (21:36 -0700)
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>
drivers/net/ethernet/realtek/r8169_main.c

index 810398e..6fcd35a 100644 (file)
@@ -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);