]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
realtek: pcs: rtl931x: don't return error on USXGMII setup
authorJonas Jelonek <jelonek.jonas@gmail.com>
Tue, 11 Nov 2025 09:55:42 +0000 (09:55 +0000)
committerHauke Mehrtens <hauke@hauke-m.de>
Tue, 23 Dec 2025 17:53:33 +0000 (18:53 +0100)
Configuring USXGMII on RTL931X was disable because it is not setup
properly right now. Affected devices need to rely on U-boot setup for
now. However, it is not the proper way to return an error in case we
just want to skip USXGMII configuration. Thus, just return 0 in that
case indicating it is properly configured.

Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/21184
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/realtek/files-6.12/drivers/net/pcs/pcs-rtl-otto.c

index 61f73395335c86b59d1fa2eb7d71a08011124e80..3e8e767d3507ee2ad7bc2e09db0657ade75bc4ff 100644 (file)
@@ -2708,7 +2708,7 @@ static int rtpcs_931x_setup_serdes(struct rtpcs_serdes *sds,
         * For now disable all USXGMII SerDes handling and rely on U-Boot setup.
         */
        if (mode == PHY_INTERFACE_MODE_USXGMII)
-               return -ENOTSUPP;
+               return 0;
 
        pr_info("%s: set sds %d to mode %d\n", __func__, sds_id, mode);
        val = rtpcs_sds_read_bits(sds, 0x1F, 0x9, 11, 6);