[openwrt/openwrt] realtek: pcs: rtl930x: drop conditional SerDes setup
LEDE Commits
lede-commits at lists.infradead.org
Sun Feb 15 05:52:39 PST 2026
hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/55120e363ef1601e322629dbc1359ae24e8b17c3
commit 55120e363ef1601e322629dbc1359ae24e8b17c3
Author: Jonas Jelonek <jelonek.jonas at gmail.com>
AuthorDate: Sun Feb 8 16:17:49 2026 +0000
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 <jelonek.jonas at gmail.com>
Link: https://github.com/openwrt/openwrt/pull/21930
Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
.../realtek/files-6.12/drivers/net/pcs/pcs-rtl-otto.c | 15 ---------------
1 file changed, 15 deletions(-)
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 34ca644b70..b0c1674bb7 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)
More information about the lede-commits
mailing list