mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-23 15:32:33 +00:00
13cdc8955c
Changelog: https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.1.80 Manually rebased: generic/hack-6.1/650-netfilter-add-xt_FLOWOFFLOAD-target.patch[1] All other patches automatically rebased. 1. Acknowledgement to @heheb and @DragonBluep. Upstream commit for ref: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.1.80&id=9c5662e95a8dcc232c3ef4deb21033badcd260f6 Build system: x86/64 Build-tested: x86/64/AMD Cezanne, ramips/tplink_archer-a6-v3 Run-tested: x86/64/AMD Cezanne, ramips/tplink_archer-a6-v3 Signed-off-by: John Audia <therealgraysky@proton.me>
66 lines
2.4 KiB
Diff
66 lines
2.4 KiB
Diff
From 85cd45580f5e3b26068cccb7d6173f200e754dc0 Mon Sep 17 00:00:00 2001
|
|
From: Daniel Golle <daniel@makrotopia.org>
|
|
Date: Sun, 2 Apr 2023 23:56:16 +0100
|
|
Subject: [PATCH 1/2] net: phy: realtek: use genphy_soft_reset for 2.5G PHYs
|
|
|
|
Some vendor bootloaders do weird things with those PHYs which result in
|
|
link modes being reported wrongly. Start from a clean sheet by resetting
|
|
the PHY.
|
|
|
|
Reported-by: Yevhen Kolomeiko <jarvis2709@gmail.com>
|
|
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
|
|
---
|
|
drivers/net/phy/realtek.c | 6 ++++++
|
|
1 file changed, 6 insertions(+)
|
|
|
|
--- a/drivers/net/phy/realtek.c
|
|
+++ b/drivers/net/phy/realtek.c
|
|
@@ -1040,6 +1040,7 @@ static struct phy_driver realtek_drvs[]
|
|
.write_page = rtl821x_write_page,
|
|
.read_mmd = rtl822x_read_mmd,
|
|
.write_mmd = rtl822x_write_mmd,
|
|
+ .soft_reset = genphy_soft_reset,
|
|
}, {
|
|
PHY_ID_MATCH_EXACT(0x001cc840),
|
|
.name = "RTL8226B_RTL8221B 2.5Gbps PHY",
|
|
@@ -1052,6 +1053,7 @@ static struct phy_driver realtek_drvs[]
|
|
.write_page = rtl821x_write_page,
|
|
.read_mmd = rtl822x_read_mmd,
|
|
.write_mmd = rtl822x_write_mmd,
|
|
+ .soft_reset = genphy_soft_reset,
|
|
}, {
|
|
PHY_ID_MATCH_EXACT(0x001cc838),
|
|
.name = "RTL8226-CG 2.5Gbps PHY",
|
|
@@ -1062,6 +1064,7 @@ static struct phy_driver realtek_drvs[]
|
|
.resume = rtlgen_resume,
|
|
.read_page = rtl821x_read_page,
|
|
.write_page = rtl821x_write_page,
|
|
+ .soft_reset = genphy_soft_reset,
|
|
}, {
|
|
PHY_ID_MATCH_EXACT(0x001cc848),
|
|
.name = "RTL8226B-CG_RTL8221B-CG 2.5Gbps PHY",
|
|
@@ -1072,6 +1075,7 @@ static struct phy_driver realtek_drvs[]
|
|
.resume = rtlgen_resume,
|
|
.read_page = rtl821x_read_page,
|
|
.write_page = rtl821x_write_page,
|
|
+ .soft_reset = genphy_soft_reset,
|
|
}, {
|
|
PHY_ID_MATCH_EXACT(0x001cc849),
|
|
.name = "RTL8221B-VB-CG 2.5Gbps PHY",
|
|
@@ -1083,6 +1087,7 @@ static struct phy_driver realtek_drvs[]
|
|
.resume = rtlgen_resume,
|
|
.read_page = rtl821x_read_page,
|
|
.write_page = rtl821x_write_page,
|
|
+ .soft_reset = genphy_soft_reset,
|
|
}, {
|
|
PHY_ID_MATCH_EXACT(0x001cc84a),
|
|
.name = "RTL8221B-VM-CG 2.5Gbps PHY",
|
|
@@ -1094,6 +1099,7 @@ static struct phy_driver realtek_drvs[]
|
|
.resume = rtlgen_resume,
|
|
.read_page = rtl821x_read_page,
|
|
.write_page = rtl821x_write_page,
|
|
+ .soft_reset = genphy_soft_reset,
|
|
}, {
|
|
PHY_ID_MATCH_EXACT(0x001cc961),
|
|
.name = "RTL8366RB Gigabit Ethernet",
|