]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
realtek: pcs: rtl93xx: rename MEDIA_PCB to MEDIA_PHY
authorJonas Jelonek <jelonek.jonas@gmail.com>
Fri, 10 Jul 2026 13:45:43 +0000 (13:45 +0000)
committerJonas Jelonek <jelonek.jonas@gmail.com>
Wed, 15 Jul 2026 17:37:00 +0000 (19:37 +0200)
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 <jelonek.jonas@gmail.com>
target/linux/realtek/files-6.18/drivers/net/pcs/pcs-rtl-otto.c

index 201f45a4251e8bbf595510f050d04f26ad0ec72d..455684c7606169d38f4b0d9118c4ee1722327122 100644 (file)
@@ -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: