Skip to content

Commit fe87bef

Browse files
hkallweitdavem330
authored andcommitted
r8169: don't check WoL when powering down PHY and interface is down
We can power down the PHY irregardless of WOL settings if interface is down. So far we would have left the PHY enabled if WOL options are set and the interface is brought down. Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 433f9d0 commit fe87bef

File tree

1 file changed

+1
-1
lines changed
  • drivers/net/ethernet/realtek

1 file changed

+1
-1
lines changed

drivers/net/ethernet/realtek/r8169.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4635,7 +4635,7 @@ static void rtl_wol_suspend_quirk(struct rtl8169_private *tp)
46354635

46364636
static bool rtl_wol_pll_power_down(struct rtl8169_private *tp)
46374637
{
4638-
if (!tp->saved_wolopts)
4638+
if (!netif_running(tp->dev) || !tp->saved_wolopts)
46394639
return false;
46404640

46414641
rtl_speed_down(tp);

0 commit comments

Comments
 (0)