From 2f74f9188fb81b95e259110bb8336f5e62e6f6d0 Mon Sep 17 00:00:00 2001 From: Jonas Jelonek Date: Wed, 18 Mar 2026 11:24:19 +0100 Subject: [PATCH] realtek: pcs: rtl930x: adjust initial vth_min value During RX calibration we use a vth_min value of 0 while the SDK always uses a value of 1 [1]. While we do not know right now which effect this really has, sync this to the SDK. In worst case we might have an insufficient calibration result at the moment which usually might be fine. [1] https://github.com/plappermaul/realtek-doc/blob/82af3a36b7f65dbe2158fef3a9b71e7aab94315e/sources/rtk-dms1250/src/dal/longan/dal_longan_sds.c#L173 Suggested-by: Bevan Weiss Signed-off-by: Jonas Jelonek Link: https://github.com/openwrt/openwrt/pull/22450 Signed-off-by: Robert Marko --- target/linux/realtek/files-6.12/drivers/net/pcs/pcs-rtl-otto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/linux/realtek/files-6.12/drivers/net/pcs/pcs-rtl-otto.c b/target/linux/realtek/files-6.12/drivers/net/pcs/pcs-rtl-otto.c index ccaed497f9..506954ddab 100644 --- a/target/linux/realtek/files-6.12/drivers/net/pcs/pcs-rtl-otto.c +++ b/target/linux/realtek/files-6.12/drivers/net/pcs/pcs-rtl-otto.c @@ -2144,7 +2144,7 @@ static void rtpcs_930x_sds_do_rx_calibration_1(struct rtpcs_serdes *sds, { /* From both rtl9300_rxCaliConf_serdes_myParam and rtl9300_rxCaliConf_phy_myParam */ int tap0_init_val = 0x1f; /* Initial Decision Fed Equalizer 0 tap */ - int vth_min = 0x0; + int vth_min = 0x1; pr_info("start_1.1.1 initial value for sds %d\n", sds->id); rtpcs_sds_write(sds, 6, 0, 0);