From: Jonas Jelonek Date: Sun, 8 Feb 2026 16:17:49 +0000 (+0000) Subject: realtek: pcs: rtl930x: drop conditional SerDes setup X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;ds=inline;p=thirdparty%2Fopenwrt.git realtek: pcs: rtl930x: drop conditional SerDes setup 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 Link: https://github.com/openwrt/openwrt/pull/21930 Signed-off-by: Hauke Mehrtens --- 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 34ca644b70a..b0c1674bb75 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 @@ -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)