]> git.baikalelectronics.ru Git - kernel.git/commit
r8169: fix runtime suspend
authorHeiner Kallweit <hkallweit1@gmail.com>
Wed, 4 Jul 2018 19:11:29 +0000 (21:11 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Jul 2018 04:24:32 +0000 (13:24 +0900)
commit6a5e351be5d43b48008eccf952842f069062212a
treec3072c4473ff3448497d308ce7a0c475b137f70a
parent7441e50647cf6cfe84da8940f2a850bad4506583
r8169: fix runtime suspend

When runtime-suspending we configure WoL w/o touching saved_wolopts.
If saved_wolopts == 0 we would power down the PHY in this case what's
wrong. Therefore we have to check the actual chip WoL settings here.

Fixes: 43ca9e0afd10 ("r8169: improve saved_wolopts handling")
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/realtek/r8169.c