Skip to contentSkip to conversation

r8169: reconfigure rx unconditionally before chip reset when resuming

PATCH In review Heiner Kallweit 2 participants 3 messages Oct 15, 2025 – Oct 16, 2025

Subsystems (3)
lore
Share & tools
lore

Heiner Kallweit

author maintainer
#0 lore raw

PATCH 1/1 r8169: reconfigure rx unconditionally before chip reset when resuming

There's a good chance that more chip versions suffer from the same hw issue. So let's reconfigure rx unconditionally before the chip reset when resuming. This shouldn't have any side effect on unaffected chip versions.

---
 drivers/net/ethernet/realtek/r8169_main.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/net/ethernet/realtek/r8169_main.c +1 -3
index d18734fe1..2a4d9b548 100644
@@ -4995,9 +4995,7 @@ static int rtl8169_resume(struct device *device)
 		clk_prepare_enable(tp->clk);
 
 	/* Some chip versions may truncate packets without this initialization */
-	if (tp->mac_version == RTL_GIGA_MAC_VER_37 ||
-	    tp->mac_version == RTL_GIGA_MAC_VER_46)
-		rtl_init_rxcfg(tp);
+	rtl_init_rxcfg(tp);
 
 	return rtl8169_runtime_resume(device);
 }
Signature · 1 line
2.51.0
reviewer Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines · Heiner Kallweit

There's a good chance that more chip versions suffer from the same hw issue. So let's reconfigure rx unconditionally before the chip reset when resuming. This shouldn't have any side effect on unaffected chip versions.

Hi Heiner,

This patch looks good to me. But I think it needs to be reposted - so that it applies to net-next - one net has been merged into net-next so the following patch is present.

commit 70f92ab97042 ("r8169: fix packet truncation after S4 resume on RTL8168H/RTL8111H")

Please feel free to add.

Signature · 1 line
pw-bot: deferred
author maintainer
#2 lore raw
Quoted 6 lines · Simon Horman
Quoted 5 lines · Heiner Kallweit

There's a good chance that more chip versions suffer from the same hw issue. So let's reconfigure rx unconditionally before the chip reset when resuming. This shouldn't have any side effect on unaffected chip versions.

Quoted 8 lines
Quoted 1 line

Hi Heiner,

This patch looks good to me. But I think it needs to be reposted - so that it applies to net-next - one net has been merged into net-next so the following patch is present.

Thanks for the review. Right, I was under the impression that net was already merged back. I'll resubmit.

Quoted 6 lines

commit 70f92ab97042 ("r8169: fix packet truncation after S4 resume on RTL8168H/RTL8111H")

Please feel free to add.