OSDN Git Service

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)
commit6fcf9b1d4d6cd38202247de5c0ac7d85c4483abb
treec3072c4473ff3448497d308ce7a0c475b137f70a
parenta4ca8b7df73c6d78b8b5aa8246a7d794b25c25ce
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: 433f9d0ddcc6 ("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