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 <jelonek.jonas@gmail.com>
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);