]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
realtek: pcs: rtl930x: rename last numbered calibration function
authorJonas Jelonek <jelonek.jonas@gmail.com>
Sun, 5 Jul 2026 17:17:30 +0000 (17:17 +0000)
committerJonas Jelonek <jelonek.jonas@gmail.com>
Mon, 6 Jul 2026 20:36:21 +0000 (22:36 +0200)
One calibration function was renamed from the numbered naming before,
mostly because its full purpose wasn't known yet. This has changed now,
so rename that function to "rxcal_init" to reflect what it's doing.

Link: https://github.com/openwrt/openwrt/pull/24091
Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
target/linux/realtek/files-6.18/drivers/net/pcs/pcs-rtl-otto.c

index bb6b1c821918417ad372c7fe2b69c5b9a608828b..864547273745bb7a179871c1cb120477bf4f41d4 100644 (file)
@@ -2320,8 +2320,7 @@ static void rtpcs_930x_sds_rxcal_tap_get(struct rtpcs_serdes *sds,
        }
 }
 
-static void rtpcs_930x_sds_do_rx_calibration_1(struct rtpcs_serdes *sds,
-                                              enum rtpcs_sds_mode hw_mode)
+static void rtpcs_930x_sds_rxcal_init(struct rtpcs_serdes *sds, enum rtpcs_sds_mode hw_mode)
 {
        /* From both rtl9300_rxCaliConf_serdes_myParam and rtl9300_rxCaliConf_phy_myParam */
        int tap0_init_val = 0x1f; /* Initial Decision Fed Equalizer 0 tap */
@@ -2584,7 +2583,7 @@ static void rtpcs_930x_sds_do_rx_calibration(struct rtpcs_serdes *sds,
 {
        u32 latch_sts;
 
-       rtpcs_930x_sds_do_rx_calibration_1(sds, hw_mode);
+       rtpcs_930x_sds_rxcal_init(sds, hw_mode);
        rtpcs_930x_sds_rxcal_fgcal(sds);
        rtpcs_930x_sds_rxcal_vth_tap0_adapt_lock(sds);