From: Jonas Jelonek Date: Fri, 10 Jul 2026 13:45:43 +0000 (+0000) Subject: realtek: pcs: rtl93xx: rename MEDIA_PCB to MEDIA_PHY X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5f6896209dc506d38fc98d6b5b3eebc57bdbec7d;p=thirdparty%2Fopenwrt.git realtek: pcs: rtl93xx: rename MEDIA_PCB to MEDIA_PHY Every SerDes lane runs over some PCB trace before reaching the port, even fiber/DAC ones, so PCB doesn't describe what actually distinguishes this case: the SerDes terminates directly into a PHY chip rather than a fiber module or DAC cable. Link: https://github.com/openwrt/openwrt/pull/24232 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 201f45a4251..455684c7606 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 @@ -202,7 +202,7 @@ enum rtpcs_sds_media { RTPCS_SDS_MEDIA_FIBER, RTPCS_SDS_MEDIA_DAC_SHORT, /* < 3m */ RTPCS_SDS_MEDIA_DAC_LONG, /* >= 3m */ - RTPCS_SDS_MEDIA_PCB, + RTPCS_SDS_MEDIA_PHY, }; enum rtpcs_sds_pll_type { @@ -593,7 +593,7 @@ static int rtpcs_sds_select_media(enum rtpcs_sds_mode hw_mode, enum rtpcs_sds_me * the SerDes-to-PHY trace is short and the PHY equalizes for * itself on the far end. */ - *media = RTPCS_SDS_MEDIA_PCB; + *media = RTPCS_SDS_MEDIA_PHY; break; } @@ -2530,7 +2530,7 @@ static void rtpcs_930x_sds_rxcal_leq_adapt_lock(struct rtpcs_serdes *sds) /* * Empirical correction based on media type. * Direct SerDes connections get a base offset of +3; DAC cables add further - * correction for their attenuation. PHY-attached (PCB) needs none. + * correction for their attenuation. PHY-attached needs none. */ switch (sds->media) { case RTPCS_SDS_MEDIA_FIBER: