From 5c8b947082465aefc1117ab31ba94d50ac3fbbb4 Mon Sep 17 00:00:00 2001 From: Jonas Jelonek Date: Tue, 14 Apr 2026 11:10:38 +0000 Subject: [PATCH] realtek: pcs: rtl931x: use generic USXGMII config Since the USXGMII config was made generic before, we can use it now for the RTL931x setup too. This brings it closer to what the SDK configures (see _dal_mango_construct_init_usxgmii), fixes some deviations in our previous settings and makes clearer what is actually done. Signed-off-by: Jonas Jelonek Link: https://github.com/openwrt/openwrt/pull/22939 Signed-off-by: Robert Marko --- .../linux/realtek/files-6.18/drivers/net/pcs/pcs-rtl-otto.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/target/linux/realtek/files-6.18/drivers/net/pcs/pcs-rtl-otto.c b/target/linux/realtek/files-6.18/drivers/net/pcs/pcs-rtl-otto.c index 82f59cedae..cf49342f0a 100644 --- a/target/linux/realtek/files-6.18/drivers/net/pcs/pcs-rtl-otto.c +++ b/target/linux/realtek/files-6.18/drivers/net/pcs/pcs-rtl-otto.c @@ -3783,14 +3783,10 @@ static int rtpcs_931x_sds_config_hw_mode(struct rtpcs_serdes *sds, case RTPCS_SDS_MODE_USXGMII_5GSXGMII: case RTPCS_SDS_MODE_USXGMII_5GDXGMII: case RTPCS_SDS_MODE_USXGMII_2_5GSXGMII: - u32 op_code = 0x6003; - rtpcs_931x_sds_reset_leq_dfe(sds); rtpcs_931x_sds_rx_reset(sds); - rtpcs_sds_write(sds, 0x7, 0x10, op_code); - rtpcs_sds_write(sds, 0x6, 0x1d, 0x0480); - rtpcs_sds_write(sds, 0x6, 0xe, 0x0400); + rtpcs_93xx_sds_usxgmii_config(sds, 0x03, 0xa4, 0, 1, 0x1); break; case RTPCS_SDS_MODE_QSGMII: