Skip to contentSkip to conversation

r8169: restore previous behavior to accept BIOS WoL settings

PATCH In review Heiner Kallweit 2 participants 2 messages Jul 24, 2018

Subsystems (3)
lore
Share & tools
lore

Heiner Kallweit

author maintainer
#0 lore raw

PATCH 1/1 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.

Fixes 7edf6d314cd0 ("r8169: disable WOL per default")

---
This patch will cause a trivial merge conflict when merging net to net-next.

---
 drivers/net/ethernet/realtek/r8169.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/net/ethernet/realtek/r8169.c +1 -2
index a3f69901..eaedc11e 100644
@@ -7734,8 +7734,7 @@ static int rtl_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
 		return rc;
 	}
 
-	/* override BIOS settings, use userspace tools to enable WOL */
-	__rtl8169_set_wol(tp, 0);
+	tp->saved_wolopts = __rtl8169_get_wol(tp);
 
 	if (rtl_tbi_enabled(tp)) {
 		tp->set_speed = rtl8169_set_speed_tbi;
Signature · 1 line
2.18.0
maintainer
#1 lore raw

From: Heiner Kallweit <[email protected]>
Date: Tue, 24 Jul 2018 22:21:04 +0200

Quoted 10 lines

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.

Quoted 3 lines
Fixes 7edf6d314cd0 ("r8169: disable WOL per default")

Applied and queued up for -stable.

Quoted 2 lines

This patch will cause a trivial merge conflict when merging net to net-next.

Thanks for the heads up.