]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
realtek: mdio: Add polling configuration for RTL8264 24392/head
authorMarkus Stockhausen <markus.stockhausen@gmx.de>
Thu, 23 Jul 2026 16:01:17 +0000 (18:01 +0200)
committerMarkus Stockhausen <markus.stockhausen@gmx.de>
Thu, 23 Jul 2026 19:45:04 +0000 (21:45 +0200)
RTL8264 polling is not configured until now. Boot log gives
"skip polling setup for phy 0x001ccaf2 on port xx". Add the
PHY features to rtmd_get_phy_info().

Link: https://github.com/openwrt/openwrt/pull/24392
Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
target/linux/realtek/files-6.18/drivers/net/mdio/mdio-realtek-otto.c

index 0a4214166ff8364dff3976f4c733d9e008fc6b05..2f94119c52c2c11389718deaa50912304d76330f 100644 (file)
@@ -92,6 +92,7 @@
 #define RTMD_PHY_RTL8224                       0x001ccad0
 #define RTMD_PHY_RTL8226                       0x001cc838
 #define RTMD_PHY_RTL8261                       0x001ccaf3
+#define RTMD_PHY_RTL8264                       0x001ccaf2
 #define RTMD_PHY_RTL8264B                      0x001cc813
 
 #define RTMD_PHY_MAC_1G                                3
@@ -738,6 +739,7 @@ static int rtmd_get_phy_info(struct rtmd_ctrl *ctrl, int pn, struct rtmd_phy_inf
                phyinfo->poll_lpa_1000 = RTMD_PHY_POLL_MMD(31, 0xa414, 11);
                break;
        case RTMD_PHY_RTL8261:
+       case RTMD_PHY_RTL8264:
        case RTMD_PHY_RTL8264B:
                phyinfo->mac_type = RTMD_PHY_MAC_2G_PLUS;
                phyinfo->has_giga_lite = true;