[openwrt/openwrt] realtek: phy: Use single initialization for RTL8214FC
LEDE Commits
lede-commits at lists.infradead.org
Thu Jan 15 06:26:50 PST 2026
robimarko pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/2c2817d3a469dd585c0833ca91d99a9cf0060549
commit 2c2817d3a469dd585c0833ca91d99a9cf0060549
Author: Markus Stockhausen <markus.stockhausen at gmx.de>
AuthorDate: Mon Jan 12 09:44:33 2026 +0100
realtek: phy: Use single initialization for RTL8214FC
There are currently two code paths to initialize the RTL8214FC. One is
for RTL838x, the other for RTL839x. With the recently added minimum
setup sequence the phy will come up and pass traffic on any device.
Use this als the reference implementation and drop the usage of the
magic firmware based setup.
Signed-off-by: Markus Stockhausen <markus.stockhausen at gmx.de>
Link: https://github.com/openwrt/openwrt/pull/21508
Signed-off-by: Robert Marko <robimarko at gmail.com>
---
target/linux/realtek/files-6.12/drivers/net/phy/rtl83xx-phy.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/target/linux/realtek/files-6.12/drivers/net/phy/rtl83xx-phy.c b/target/linux/realtek/files-6.12/drivers/net/phy/rtl83xx-phy.c
index 046b9cc0d4..1d6d04b781 100644
--- a/target/linux/realtek/files-6.12/drivers/net/phy/rtl83xx-phy.c
+++ b/target/linux/realtek/files-6.12/drivers/net/phy/rtl83xx-phy.c
@@ -661,6 +661,7 @@ static int rtl8380_configure_rtl8214c(struct phy_device *phydev)
return 0;
}
+__maybe_unused
static int rtl8380_configure_rtl8214fc(struct phy_device *phydev)
{
u32 *rtl8380_rtl8214fc_perchip;
@@ -958,10 +959,7 @@ static int rtl8214fc_phy_probe(struct phy_device *phydev)
int ret = 0;
if (rtl821x_package_join(phydev, 4) == RTL821X_JOIN_LAST) {
- if (soc_info.family == RTL8380_FAMILY_ID)
- ret = rtl8380_configure_rtl8214fc(get_base_phy(phydev));
- else if (soc_info.family == RTL8390_FAMILY_ID)
- ret = rtl8214fc_config_init(get_base_phy(phydev));
+ ret = rtl8214fc_config_init(get_base_phy(phydev));
if (ret)
return ret;
}
More information about the lede-commits
mailing list