Re: [PATCH RESEND v2 6/8] mmc: sdhci-of-k1: Use finest delay granularity for RX tuning

From: Adrian Hunter

Date: Thu Dec 03 2026 - 11:26:29 EST


On 01/12/2026 12:54, Yixun Lan wrote:
> From: Long Wan <long.wan@xxxxxxxxxxxxxxxxxx>
>
> Initialize the RX delay line to 0 (finest step size) instead of 9.
> This improves tuning precision by allowing smaller delay increments
> when searching for the optimal sampling point.

If the step size is smaller, does there also need to be more steps
somewhere e.g. the next patch?

Also what happens without this fix?

>
> Fixes: e9cb83c10071 ("mmc: sdhci-of-k1: add comprehensive SDR tuning support")
> Signed-off-by: Long Wan <long.wan@xxxxxxxxxxxxxxxxxx>
> Signed-off-by: Yixun Lan <dlan@xxxxxxxxxx>
> ---
> drivers/mmc/host/sdhci-of-k1.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/mmc/host/sdhci-of-k1.c b/drivers/mmc/host/sdhci-of-k1.c
> index 01bc0f4bd6de..ba01434284eb 100644
> --- a/drivers/mmc/host/sdhci-of-k1.c
> +++ b/drivers/mmc/host/sdhci-of-k1.c
> @@ -84,7 +84,7 @@
> #define SDHC_RX_DLINE_GAIN BIT(8)
> #define SDHC_TX_DLINE_REG_MASK GENMASK(23, 16)
>
> -#define SPACEMIT_RX_DLINE_REG 9
> +#define SPACEMIT_RX_DLINE_REG 0
> #define SPACEMIT_RX_TUNE_DELAY_MIN 0x0
> #define SPACEMIT_RX_TUNE_DELAY_MAX 0xFF
>
>