]> 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)
commit638c60d12f0015804c80cc371099ed073db0f3f7
treec3072c4473ff3448497d308ce7a0c475b137f70a
parent8f126918e826c00cd234e8ecefaeacb70fa9635c
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: 1d3affd30f7a ("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