Skip to contentSkip to conversation

r8169: fix RTL8117 Wake-on-Lan in DASH mode

PATCH Superseded René Rebe 3 participants 6 messages Dec 2, 2025 – Dec 4, 2025

Subsystems (3)
lore
Share & tools
lore

René Rebe

author
#0 lore raw

PATCH v2 1/1 r8169: fix RTL8117 Wake-on-Lan in DASH mode

Wake-on-Lan does currently not work in DASH mode, e.g. the ASUS Pro WS X570-ACE with RTL8168fp/RTL8117.

Fix by not returning early in rtl_prepare_power_down when dash_enabled. While this fixes WoL, it still kills the OOB RTL8117 remote management BMC connection. Fix by not calling rtl8168_driver_stop if WoL is enabled.

Fixes 065c27c184d6 ("r8169: phy power ops")

---
V2; DASH WoL fix only
Tested on ASUS Pro WS X570-ACE with RTL8168fp/RTL8117 running T2/Linux.

---
 drivers/net/ethernet/realtek/r8169_main.c | 5 +----
 1 file changed, 1 insertions(+), 4 deletions(-)
drivers/net/ethernet/realtek/r8169_main.c +1 -4
index 853aabedb128..e2f9b9027fe2 100644
@@ -2669,9 +2669,6 @@ static void rtl_wol_enable_rx(struct rtl8169_private *tp)
 
 static void rtl_prepare_power_down(struct rtl8169_private *tp)
 {
-	if (tp->dash_enabled)
-		return;
-
 	if (tp->mac_version == RTL_GIGA_MAC_VER_32 ||
 	    tp->mac_version == RTL_GIGA_MAC_VER_33)
 		rtl_ephy_write(tp, 0x19, 0xff64);
@@ -4807,7 +4804,7 @@ static void rtl8169_down(struct rtl8169_private *tp)
 	rtl_disable_exit_l1(tp);
 	rtl_prepare_power_down(tp);
 
-	if (tp->dash_type != RTL_DASH_NONE)
+	if (tp->dash_type != RTL_DASH_NONE && !tp->saved_wolopts)
 		rtl8168_driver_stop(tp);
 }
 
Signature · 5 lines
2.46.0

-- 
René Rebe, ExactCODE GmbH, Berlin, Germany
https://exactco.de • https://t2linux.com • https://patreon.com/renerebe
maintainer
#1 lore raw
Quoted 31 lines · René Rebe

Wake-on-Lan does currently not work in DASH mode, e.g. the ASUS Pro WS X570-ACE with RTL8168fp/RTL8117.

Fix by not returning early in rtl_prepare_power_down when dash_enabled. While this fixes WoL, it still kills the OOB RTL8117 remote management BMC connection. Fix by not calling rtl8168_driver_stop if WoL is enabled.

Fixes 065c27c184d6 ("r8169: phy power ops")

---
V2; DASH WoL fix only
Tested on ASUS Pro WS X570-ACE with RTL8168fp/RTL8117 running T2/Linux.

---
 drivers/net/ethernet/realtek/r8169_main.c | 5 +----
 1 file changed, 1 insertions(+), 4 deletions(-)
drivers/net/ethernet/realtek/r8169_main.c +0 -3
index 853aabedb128..e2f9b9027fe2 100644
@@ -2669,9 +2669,6 @@ static void rtl_wol_enable_rx(struct rtl8169_private *tp)
 
 static void rtl_prepare_power_down(struct rtl8169_private *tp)
 {
-	if (tp->dash_enabled)
-		return;
-
 	if (tp->mac_version == RTL_GIGA_MAC_VER_32 ||
 	    tp->mac_version == RTL_GIGA_MAC_VER_33)
 		rtl_ephy_write(tp, 0x19, 0xff64);

drivers/net/ethernet/realtek/r8169_main.c static void rtl8169_down(struct rtl8169_private *tp) · line 4810

Quoted 8 lines
drivers/net/ethernet/realtek/r8169_main.c +1 -1
@@ -4807,7 +4804,7 @@ static void rtl8169_down(struct rtl8169_private *tp)
 	rtl_disable_exit_l1(tp);
 	rtl_prepare_power_down(tp);
 
-	if (tp->dash_type != RTL_DASH_NONE)
+	if (tp->dash_type != RTL_DASH_NONE && !tp->saved_wolopts)
 		rtl8168_driver_stop(tp);
 }
 

Patch itself is fine with me. ToDo's:
- target net tree
- cc stable
- include all maintainers / blamed authors
-> get_maintainer.pl

--
pw-bot: cr

author
#2 lore raw
Quoted 35 lines · Heiner Kallweit
Quoted 34 lines · René Rebe

Wake-on-Lan does currently not work in DASH mode, e.g. the ASUS Pro WS X570-ACE with RTL8168fp/RTL8117.

Fix by not returning early in rtl_prepare_power_down when dash_enabled. While this fixes WoL, it still kills the OOB RTL8117 remote management BMC connection. Fix by not calling rtl8168_driver_stop if WoL is enabled.

Fixes 065c27c184d6 ("r8169: phy power ops")

---
V2; DASH WoL fix only
Tested on ASUS Pro WS X570-ACE with RTL8168fp/RTL8117 running T2/Linux.

---
 drivers/net/ethernet/realtek/r8169_main.c | 5 +----
 1 file changed, 1 insertions(+), 4 deletions(-)
drivers/net/ethernet/realtek/r8169_main.c +0 -3
index 853aabedb128..e2f9b9027fe2 100644
@@ -2669,9 +2669,6 @@ static void rtl_wol_enable_rx(struct rtl8169_private *tp)
 
 static void rtl_prepare_power_down(struct rtl8169_private *tp)
 {
-	if (tp->dash_enabled)
-		return;
-
 	if (tp->mac_version == RTL_GIGA_MAC_VER_32 ||
 	    tp->mac_version == RTL_GIGA_MAC_VER_33)
 		rtl_ephy_write(tp, 0x19, 0xff64);
@@ -4807,7 +4804,7 @@ static void rtl8169_down(struct rtl8169_private *tp)
 	rtl_disable_exit_l1(tp);
 	rtl_prepare_power_down(tp);
 
Quoted 8 lines

drivers/net/ethernet/realtek/r8169_main.c static void rtl8169_down(struct rtl8169_private *tp) · line 4810

Quoted 5 lines
drivers/net/ethernet/realtek/r8169_main.c +1 -1
-	if (tp->dash_type != RTL_DASH_NONE)
+	if (tp->dash_type != RTL_DASH_NONE && !tp->saved_wolopts)
 		rtl8168_driver_stop(tp);
 }
 

Patch itself is fine with me. ToDo's:
- target net tree

What is the difference? The patch clearly git am applies to the net tree with zero fuzz, not?

Quoted 1 line

- cc stable

I was under the impression this is automatic when patches are merged with Fixes:, no? Do I need to manually cc stable? Nobody ever asked me for that before.

Quoted 2 lines

- include all maintainers / blamed authors
-> get_maintainer.pl

Of course I used get_maintainers.pl and thought I included all relevant. I surely can include all of them it spits out. I usually filter to the relevant ones to keep the noise level down.

René

Signature · 2 lines
René Rebe, ExactCODE GmbH, Berlin, Germany
https://exactco.de • https://t2linux.com • https://patreon.com/renerebe
maintainer
#3 lore raw
Quoted 46 lines · René Rebe
Quoted 35 lines · Heiner Kallweit
Quoted 34 lines · René Rebe

Wake-on-Lan does currently not work in DASH mode, e.g. the ASUS Pro WS X570-ACE with RTL8168fp/RTL8117.

Fix by not returning early in rtl_prepare_power_down when dash_enabled. While this fixes WoL, it still kills the OOB RTL8117 remote management BMC connection. Fix by not calling rtl8168_driver_stop if WoL is enabled.

Fixes 065c27c184d6 ("r8169: phy power ops")

---
V2; DASH WoL fix only
Tested on ASUS Pro WS X570-ACE with RTL8168fp/RTL8117 running T2/Linux.

---
 drivers/net/ethernet/realtek/r8169_main.c | 5 +----
 1 file changed, 1 insertions(+), 4 deletions(-)
drivers/net/ethernet/realtek/r8169_main.c +0 -3
index 853aabedb128..e2f9b9027fe2 100644
@@ -2669,9 +2669,6 @@ static void rtl_wol_enable_rx(struct rtl8169_private *tp)
 
 static void rtl_prepare_power_down(struct rtl8169_private *tp)
 {
-	if (tp->dash_enabled)
-		return;
-
 	if (tp->mac_version == RTL_GIGA_MAC_VER_32 ||
 	    tp->mac_version == RTL_GIGA_MAC_VER_33)
 		rtl_ephy_write(tp, 0x19, 0xff64);
@@ -4807,7 +4804,7 @@ static void rtl8169_down(struct rtl8169_private *tp)
 	rtl_disable_exit_l1(tp);
 	rtl_prepare_power_down(tp);
 
Quoted 8 lines

drivers/net/ethernet/realtek/r8169_main.c static void rtl8169_down(struct rtl8169_private *tp) · line 4810

Quoted 5 lines
drivers/net/ethernet/realtek/r8169_main.c +1 -1
-	if (tp->dash_type != RTL_DASH_NONE)
+	if (tp->dash_type != RTL_DASH_NONE && !tp->saved_wolopts)
 		rtl8168_driver_stop(tp);
 }
 

Patch itself is fine with me. ToDo's:
- target net tree

Quoted 3 lines

What is the difference? The patch clearly git am applies to the net tree with zero fuzz, not?

See netdev-FAQ. Always annotate whether you target net or net-next tree.

Quoted 6 lines
Quoted 1 line

- cc stable

I was under the impression this is automatic when patches are merged with Fixes:, no? Do I need to manually cc stable? Nobody ever asked me for that before.

https://docs.kernel.org/process/maintainer-netdev.html
See 1.5.7

Quoted 7 lines
Quoted 2 lines

- include all maintainers / blamed authors
-> get_maintainer.pl

Of course I used get_maintainers.pl and thought I included all relevant. I surely can include all of them it spits out. I usually filter to the relevant ones to keep the noise level down.

Please include all of them. CI also checks for it.

Quoted 2 lines

René

#4 lore raw
Quoted 2 lines · Heiner Kallweit
Quoted 1 line · René Rebe

On Tue, 2 Dec 2025 18:19:02 +0100, Heiner Kallweit <[email protected]> wrote:

[...]

Quoted 8 lines
Quoted 6 lines
Quoted 1 line

- cc stable

I was under the impression this is automatic when patches are merged with Fixes:, no? Do I need to manually cc stable? Nobody ever asked me for that before.

https://docs.kernel.org/process/maintainer-netdev.html
See 1.5.7

Which points to
https://docs.kernel.org/process/stable-kernel-rules.html#stable-kernel-rules
and the Option 1 instructions read: "Note, such tagging is unnecessary if the stable team can derive the appropriate versions from Fixes:
tags."

Cheers, Phil

maintainer
#5 lore raw
Quoted 10 lines · Phil Sutter
Quoted 2 lines · Heiner Kallweit
Quoted 1 line · René Rebe

On Tue, 2 Dec 2025 18:19:02 +0100, Heiner Kallweit <[email protected]> wrote:

[...]

Quoted 6 lines
Quoted 6 lines
Quoted 1 line

- cc stable

I was under the impression this is automatic when patches are merged with Fixes:, no? Do I need to manually cc stable? Nobody ever asked me for that before.

Quoted 9 lines
Quoted 2 lines

https://docs.kernel.org/process/maintainer-netdev.html
See 1.5.7

Which points to
https://docs.kernel.org/process/stable-kernel-rules.html#stable-kernel-rules
and the Option 1 instructions read: "Note, such tagging is unnecessary if the stable team can derive the appropriate versions from Fixes:
tags."

This is about something different. "such tagging" refers to providing applicable kernel versions like in the example:
Cc: <[email protected]> # 3.3.x

Quoted 1 line

Cheers, Phil