From d7c9b654a6fa20f808a0012214413b33a95e660c Mon Sep 17 00:00:00 2001 From: Markus Stockhausen Date: Sun, 22 Sep 2024 13:36:14 -0400 Subject: [PATCH] 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 --- 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 ff30d564f16ebd..0d3ade59e64876 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 @@ -3936,7 +3936,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,