[openwrt/openwrt] realtek: phy: fix RTL8218D detection

LEDE Commits lede-commits at lists.infradead.org
Sun Oct 27 14:26:36 PDT 2024


robimarko pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/8f68e1abe591db4db5542466761b815d06775d21

commit 8f68e1abe591db4db5542466761b815d06775d21
Author: Markus Stockhausen <markus.stockhausen at gmx.de>
AuthorDate: Sun Sep 22 13:36:14 2024 -0400

    realtek: phy: fix RTL8218D detection
    
    Currently RTL8218D detection works for a range of devices. That can lead to
    false positives. E.g. RTL8218B or RTL8214FC are covered by the detection mask
    as well. That is wrong. Nail detection down to the real RTL8218D phy id.
    
    Signed-off-by: Markus Stockhausen <markus.stockhausen at gmx.de>
    Link: https://github.com/openwrt/openwrt/pull/16457
    Signed-off-by: Robert Marko <robimarko at gmail.com>
---
 target/linux/realtek/files-6.6/drivers/net/phy/rtl83xx-phy.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/linux/realtek/files-6.6/drivers/net/phy/rtl83xx-phy.c b/target/linux/realtek/files-6.6/drivers/net/phy/rtl83xx-phy.c
index f9c656b659..09c6ca3b2c 100644
--- a/target/linux/realtek/files-6.6/drivers/net/phy/rtl83xx-phy.c
+++ b/target/linux/realtek/files-6.6/drivers/net/phy/rtl83xx-phy.c
@@ -3929,7 +3929,7 @@ static struct phy_driver rtl83xx_phy_driver[] = {
 		.get_eee	= rtl8218b_get_eee,
 	},
 	{
-		PHY_ID_MATCH_MODEL(PHY_ID_RTL8218D),
+		PHY_ID_MATCH_EXACT(PHY_ID_RTL8218D),
 		.name		= "REALTEK RTL8218D",
 		.features	= PHY_GBIT_FEATURES,
 		.probe		= rtl8218d_phy_probe,




More information about the lede-commits mailing list