]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
realtek: pcs: rtl931x: drop RX channel resets during USXGMII config
authorJonas Jelonek <jelonek.jonas@gmail.com>
Thu, 16 Jul 2026 23:03:36 +0000 (23:03 +0000)
committerJonas Jelonek <jelonek.jonas@gmail.com>
Mon, 20 Jul 2026 13:45:53 +0000 (15:45 +0200)
The mode configuration calls LEQ/DFE reset and RX reset before doing
USXGMII configuration. Though the SDK does that similar, these calls are
actually unneeded because essentially the same is executed later again
in the attachment configuration. This is also the place where it
rather belongs. Thus, drop those calls in mode configuration.

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

index bf9abc505ddc80092f71c4279c256e7efd238a12..2598360e81502579855ebe22be5b061eab275e51 100644 (file)
@@ -3262,6 +3262,7 @@ static int rtpcs_931x_sds_activate(struct rtpcs_serdes *sds)
        return rtpcs_931x_sds_power(sds, true);
 }
 
+__maybe_unused
 static void rtpcs_931x_sds_rx_reset(struct rtpcs_serdes *sds)
 {
        if (sds->type != RTPCS_SDS_TYPE_10G)
@@ -3684,9 +3685,6 @@ 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:
-               rtpcs_931x_sds_reset_leq_dfe(sds);
-               rtpcs_931x_sds_rx_reset(sds);
-
                rtpcs_93xx_sds_usxgmii_config(sds, RTPCS_USXGMII_AN_OPC_STD, 0xa4, 0, 1, 0x1);
                break;