]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
realtek: actually enable 2500Base-X 19517/head
authorJan Hoffmann <jan@3e8.eu>
Thu, 24 Jul 2025 17:29:23 +0000 (19:29 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Fri, 25 Jul 2025 21:52:49 +0000 (23:52 +0200)
The SerDes setup function needs to be called to make 2500Base-X work.

Signed-off-by: Jan Hoffmann <jan@3e8.eu>
Link: https://github.com/openwrt/openwrt/pull/19517
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/dsa.c

index 85aa1975f2afa0d1d03592d616dc1f9bc10edefe..1af34b4c5fb46ae0b86df654c7b27a64f4b1f562 100644 (file)
@@ -678,6 +678,7 @@ static void rtl93xx_phylink_mac_config(struct dsa_switch *ds, int port,
        if (sds_num >= 0 &&
            (state->interface == PHY_INTERFACE_MODE_1000BASEX ||
             state->interface == PHY_INTERFACE_MODE_SGMII ||
+            state->interface == PHY_INTERFACE_MODE_2500BASEX ||
             state->interface == PHY_INTERFACE_MODE_10GBASER))
                rtl9300_serdes_setup(port, sds_num, state->interface);
 }