[openwrt/openwrt] realtek: pcs: rtl931x: don't return error on USXGMII setup

LEDE Commits lede-commits at lists.infradead.org
Tue Dec 23 09:56:39 PST 2025


hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/93296c9e8555273a613a840d518fc0158747a0bf

commit 93296c9e8555273a613a840d518fc0158747a0bf
Author: Jonas Jelonek <jelonek.jonas at gmail.com>
AuthorDate: Tue Nov 11 09:55:42 2025 +0000

    realtek: pcs: rtl931x: don't return error on USXGMII setup
    
    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 at gmail.com>
    Link: https://github.com/openwrt/openwrt/pull/21184
    Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
 target/linux/realtek/files-6.12/drivers/net/pcs/pcs-rtl-otto.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/linux/realtek/files-6.12/drivers/net/pcs/pcs-rtl-otto.c b/target/linux/realtek/files-6.12/drivers/net/pcs/pcs-rtl-otto.c
index 61f7339533..3e8e767d35 100644
--- a/target/linux/realtek/files-6.12/drivers/net/pcs/pcs-rtl-otto.c
+++ b/target/linux/realtek/files-6.12/drivers/net/pcs/pcs-rtl-otto.c
@@ -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);




More information about the lede-commits mailing list