realtek: phy: fix RTL8218D detection
authorMarkus Stockhausen <markus.stockhausen@gmx.de>
Sun, 22 Sep 2024 17:36:14 +0000 (13:36 -0400)
committerRobert Marko <robimarko@gmail.com>
Sun, 27 Oct 2024 21:26:25 +0000 (22:26 +0100)
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@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/16457
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/realtek/files-6.6/drivers/net/phy/rtl83xx-phy.c

index f9c656b659d0126351d1029efcf98fd48e49c24b..09c6ca3b2cb130ca337310c8e1bea082dce5fcb9 100644 (file)
@@ -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,