Skip to content

Commit 55120e3

Browse files
jonasjelonekhauke
authored andcommitted
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@gmail.com> Link: openwrt/openwrt#21930 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
1 parent afb8a87 commit 55120e3

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

target/linux/realtek/files-6.12/drivers/net/pcs/pcs-rtl-otto.c

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2960,21 +2960,6 @@ static int rtpcs_930x_setup_serdes(struct rtpcs_serdes *sds,
29602960
{
29612961
int calib_tries = 0, ret;
29622962

2963-
/* Rely on setup from U-boot for some modes, e.g. USXGMII */
2964-
switch (hw_mode) {
2965-
case RTPCS_SDS_MODE_1000BASEX:
2966-
case RTPCS_SDS_MODE_SGMII:
2967-
case RTPCS_SDS_MODE_2500BASEX:
2968-
case RTPCS_SDS_MODE_10GBASER:
2969-
case RTPCS_SDS_MODE_USXGMII_10GSXGMII:
2970-
case RTPCS_SDS_MODE_USXGMII_10GQXGMII:
2971-
case RTPCS_SDS_MODE_QSGMII:
2972-
case RTPCS_SDS_MODE_XSGMII:
2973-
break;
2974-
default:
2975-
return 0;
2976-
}
2977-
29782963
/* Turn Off Serdes */
29792964
ret = rtpcs_930x_sds_set_mode(sds, RTPCS_SDS_MODE_OFF);
29802965
if (ret < 0)

0 commit comments

Comments
 (0)