]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
realtek: mdio: add polling setup support for RTL8264B 23946/head
authorJonas Jelonek <jelonek.jonas@gmail.com>
Fri, 26 Jun 2026 10:08:43 +0000 (10:08 +0000)
committerJonas Jelonek <jelonek.jonas@gmail.com>
Fri, 26 Jun 2026 15:34:38 +0000 (17:34 +0200)
Add polling setup support for RTL8264B PHY to avoid 'skip polling'
message during boot. Rely on the default register values for polling for
now, similar to RTL8261.

Link: https://github.com/openwrt/openwrt/pull/23946
Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
target/linux/realtek/files-6.18/drivers/net/mdio/mdio-realtek-otto.c

index c4d425b78475003d7c38dd16fd495a75d92d5136..0a4214166ff8364dff3976f4c733d9e008fc6b05 100644 (file)
@@ -92,6 +92,7 @@
 #define RTMD_PHY_RTL8224                       0x001ccad0
 #define RTMD_PHY_RTL8226                       0x001cc838
 #define RTMD_PHY_RTL8261                       0x001ccaf3
+#define RTMD_PHY_RTL8264B                      0x001cc813
 
 #define RTMD_PHY_MAC_1G                                3
 #define RTMD_PHY_MAC_2G_PLUS                   1
@@ -737,6 +738,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_RTL8264B:
                phyinfo->mac_type = RTMD_PHY_MAC_2G_PLUS;
                phyinfo->has_giga_lite = true;
                phyinfo->has_res_reg = true;