Skip to contentSkip to conversation

r8169: fix RTL8168H and RTL8107E rx crc error

PATCH Applied ChunHao Lin 4 participants 4 messages Mar 23, 2023 – Mar 25, 2023

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 r8169: fix RTL8168H and RTL8107E rx crc error

When link speed is 10 Mbps and temperature is under -20°C, RTL8168H and RTL8107E may have rx crc error. Disable phy 10 Mbps pll off to fix this issue.

Fixes 6e1d0b898818 ("r8169:add support for RTL8168H and RTL8107E")

---
V1 -> V2:
- add Fixes tag
- change title and description

 drivers/net/ethernet/realtek/r8169_phy_config.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/net/ethernet/realtek/r8169_phy_config.c +3 -0
index 930496cd34ed..b50f16786c24 100644
@@ -826,6 +826,9 @@ static void rtl8168h_2_hw_phy_config(struct rtl8169_private *tp,
 	/* disable phy pfm mode */
 	phy_modify_paged(phydev, 0x0a44, 0x11, BIT(7), 0);
 
+	/* disable 10m pll off */
+	phy_modify_paged(phydev, 0x0a43, 0x10, BIT(0), 0);
+
 	rtl8168g_disable_aldps(phydev);
 	rtl8168g_config_eee_phy(phydev);
 }
Signature · 1 line
2.37.2
maintainer
#1 lore raw
Quoted 6 lines · On Thu, 23 Mar 2023 22:33:09 +0800 ChunHao Lin wrote:

When link speed is 10 Mbps and temperature is under -20°C, RTL8168H and RTL8107E may have rx crc error. Disable phy 10 Mbps pll off to fix this issue.

Fixes 6e1d0b898818 ("r8169:add support for RTL8168H and RTL8107E")

Hi Heiner, looks good?

maintainer Reviewed-by on v2 1/1
#2 lore raw
In reply to ChunHao Lin
Quoted 11 lines · ChunHao Lin

When link speed is 10 Mbps and temperature is under -20°C, RTL8168H and RTL8107E may have rx crc error. Disable phy 10 Mbps pll off to fix this issue.

Fixes 6e1d0b898818 ("r8169:add support for RTL8168H and RTL8107E")

---
V1 -> V2:
- add Fixes tag
- change title and description

#3 lore raw
In reply to ChunHao Lin
This patch was applied to netdev/net.git (main) by David S. Miller <[email protected]>:

Hello:

This patch was applied to netdev/net.git (main)
by David S. Miller <[email protected]>:

Quoted 8 lines · On Thu, 23 Mar 2023 22:33:09 +0800 you wrote:

When link speed is 10 Mbps and temperature is under -20°C, RTL8168H and RTL8107E may have rx crc error. Disable phy 10 Mbps pll off to fix this issue.

Fixes 6e1d0b898818 ("r8169:add support for RTL8168H and RTL8107E")

[...]

Here is the summary with links:
- [net,v2] r8169: fix RTL8168H and RTL8107E rx crc error

    https://git.kernel.org/netdev/net/c/33189f0a94b9

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html