]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
realtek: pcs: rtl930x: drop conditional SerDes setup 21930/head
authorJonas Jelonek <jelonek.jonas@gmail.com>
Sun, 8 Feb 2026 16:17:49 +0000 (16:17 +0000)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 15 Feb 2026 13:51:54 +0000 (14:51 +0100)
We can now setup most of the modes for RTL930x, recently XSGMII, QSGMII
and USXGMII-SX have been added. Thus we don't need a big list of allowed
modes anymore in SerDes setup. Drop this without replacement. Other
modes are still rejected in other places or will be rejected later with
a proper SerDes capability handling.

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

index 34ca644b70a3fa9091bc39c90054badeccc052f8..b0c1674bb759e6b4c70a040c733fe38594646564 100644 (file)
@@ -2960,21 +2960,6 @@ static int rtpcs_930x_setup_serdes(struct rtpcs_serdes *sds,
 {
        int calib_tries = 0, ret;
 
-       /* Rely on setup from U-boot for some modes, e.g. USXGMII */
-       switch (hw_mode) {
-       case RTPCS_SDS_MODE_1000BASEX:
-       case RTPCS_SDS_MODE_SGMII:
-       case RTPCS_SDS_MODE_2500BASEX:
-       case RTPCS_SDS_MODE_10GBASER:
-       case RTPCS_SDS_MODE_USXGMII_10GSXGMII:
-       case RTPCS_SDS_MODE_USXGMII_10GQXGMII:
-       case RTPCS_SDS_MODE_QSGMII:
-       case RTPCS_SDS_MODE_XSGMII:
-               break;
-       default:
-               return 0;
-       }
-
        /* Turn Off Serdes */
        ret = rtpcs_930x_sds_set_mode(sds, RTPCS_SDS_MODE_OFF);
        if (ret < 0)