[openwrt/openwrt] realtek: phy: drop last soc_info/family usage
LEDE Commits
lede-commits at lists.infradead.org
Wed Feb 4 14:53:35 PST 2026
hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/78a0ef2389a62fd12873ddf86952e03a0f4b5319
commit 78a0ef2389a62fd12873ddf86952e03a0f4b5319
Author: Markus Stockhausen <markus.stockhausen at gmx.de>
AuthorDate: Tue Feb 3 14:55:42 2026 +0100
realtek: phy: drop last soc_info/family usage
The internal RTL8218B gets detected cleanly. No need for
additional checks of the bus address or the SoC type.
Signed-off-by: Markus Stockhausen <markus.stockhausen at gmx.de>
Link: https://github.com/openwrt/openwrt/pull/21857
Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
target/linux/realtek/files-6.12/drivers/net/phy/rtl83xx-phy.c | 8 --------
1 file changed, 8 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 428fdb7d53..3c0cb7b3e5 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
@@ -15,11 +15,8 @@
#include <linux/mii.h>
#include <linux/mdio.h>
-#include <asm/mach-rtl838x/mach-rtl83xx.h>
#include "rtl83xx-phy.h"
-extern struct rtl83xx_soc_info soc_info;
-
/*
* Realtek PHYs have three special page registers. Register 31 (page select) switches the
* register pages and gives access to special registers that are mapped into register
@@ -587,11 +584,6 @@ static int rtl8218b_ext_phy_probe(struct phy_device *phydev)
static int rtl8218b_int_phy_probe(struct phy_device *phydev)
{
- if (soc_info.family != RTL8380_FAMILY_ID)
- return -ENODEV;
- if (phydev->mdio.addr >= 24)
- return -ENODEV;
-
if (rtl821x_package_join(phydev, 8) == RTL821X_JOIN_LAST)
return rtl8380_configure_int_rtl8218b(get_base_phy(phydev));
More information about the lede-commits
mailing list