r8169: remember WOL preferences on driver load
authorPeter Wu <lekensteyn@gmail.com>
Sat, 17 Aug 2013 09:00:02 +0000 (11:00 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Aug 2013 23:48:32 +0000 (16:48 -0700)
commit8f9d5138035de0940358cfb36eed16ebdaf5a4e5
tree688ddf5cae7020541cd0ad075edab3c7ffdb50b5
parent18ebe5c1c63b46f1acc41f68af5d82d6b7b39d73
r8169: remember WOL preferences on driver load

Do not clear Broadcast/Multicast/Unicast Wake Flag or LanWake in
Config5. This is necessary to preserve WOL state when the driver is
loaded. Although the r8168 vendor driver does not write Config5 (it has
been commented out), Hayes Wang from Realtek said that masking bits like
this is more sensible.

Signed-off-by: Peter Wu <lekensteyn@gmail.com>
Acked-by: Francois Romieu <romieu@fr.zoreil.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/realtek/r8169.c