r8169: restore previous behavior to accept BIOS WoL settings
authorHeiner Kallweit <hkallweit1@gmail.com>
Tue, 24 Jul 2018 20:21:04 +0000 (22:21 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 24 Jul 2018 21:06:39 +0000 (14:06 -0700)
commit18041b523692038d41751fd8046638c356d77a36
tree4620cc71bc788d141ae8ac8f61c51dd520f6cc91
parent049f56044d12398d632c52633da60492b68e5247
r8169: restore previous behavior to accept BIOS WoL settings

Commit 7edf6d314cd0 tried to resolve an inconsistency (BIOS WoL
settings are accepted, but device isn't wakeup-enabled) resulting
from a previous broken-BIOS workaround by making disabled WoL the
default.
This however had some side effects, most likely due to a broken BIOS
some systems don't properly resume from suspend when the MagicPacket
WoL bit isn't set in the chip, see
https://bugzilla.kernel.org/show_bug.cgi?id=200195
Therefore restore the WoL behavior from 4.16.

Reported-by: Albert Astals Cid <aacid@kde.org>
Fixes: 7edf6d314cd0 ("r8169: disable WOL per default")
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/realtek/r8169.c