From: Jonas Jelonek Date: Fri, 5 Jun 2026 22:15:13 +0000 (+0000) Subject: realtek: pcs: rtl931x: enable XSGMII setup X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=5d45f53966d87fc7d64a1a886178f167adf5bdc4;p=thirdparty%2Fopenwrt.git realtek: pcs: rtl931x: enable XSGMII setup The setup path has been adjusted before to at least not break a working XSGMII setup. On the currently single affected device, the U-boot pre-init runs unconditionally anyway. Thus, we can drop the top-level gate and let our driver "setup" this mode. This enables further structural changes. Link: https://github.com/openwrt/openwrt/pull/23674 Signed-off-by: Jonas Jelonek --- diff --git a/target/linux/realtek/files-6.18/drivers/net/pcs/pcs-rtl-otto.c b/target/linux/realtek/files-6.18/drivers/net/pcs/pcs-rtl-otto.c index 2a72117cbfb..54d09d7fd31 100644 --- a/target/linux/realtek/files-6.18/drivers/net/pcs/pcs-rtl-otto.c +++ b/target/linux/realtek/files-6.18/drivers/net/pcs/pcs-rtl-otto.c @@ -3897,13 +3897,6 @@ static int rtpcs_931x_setup_serdes(struct rtpcs_serdes *sds, enum rtpcs_sds_media sds_media; int ret; - /* - * TODO: XSGMII (Realtek-proprietary 10G SGMII used by RTL8218D/E) - * bring-up is not implemented yet. - */ - if (hw_mode == RTPCS_SDS_MODE_XSGMII) - return 0; - rtpcs_931x_sds_deactivate(sds); ret = rtpcs_931x_sds_config_hw_mode(sds, hw_mode);