Skip to content
Commit 649b3b8c authored by françois romieu's avatar françois romieu Committed by David S. Miller
Browse files

r8169: fix driver shutdown WoL regression.

Due to commit 92fc43b4

 ("r8169: modify the
flow of the hw reset."), rtl8169_hw_reset stomps during driver shutdown on
RxConfig bits which are needed for WOL on some versions of the hardware.

As these bits were formerly set from the r81{0x, 68}_pll_power_down methods,
factor them out for use in the driver shutdown (rtl_shutdown) handler.

I favored __rtl8169_get_wol() -hardware state indication- over
RTL_FEATURE_WOL as the latter has become a good candidate for removal.

Signed-off-by: default avatarFrancois Romieu <romieu@fr.zoreil.com>
Cc: Hayes <hayeswang@realtek.com>
Tested-by: default avatarMarc Ballarin <ballarin.marc@gmx.de>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 34b1901a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment