Skip to content
Commit ace323f8 authored by Maksim Kiselev's avatar Maksim Kiselev Committed by Ulf Hansson
Browse files

mmc: sdhci-of-dwcmshc: th1520: Increase tuning loop count to 128



Fix SD card tuning error by increasing tuning loop count
from 40(MAX_TUNING_LOOP) to 128.

For some reason the tuning algorithm requires to move through all the taps
of delay line even if the THRESHOLD_MODE (bit 2 in AT_CTRL_R) is used
instead of the LARGEST_WIN_MODE.

Tested-by: default avatarDrew Fustini <drew@pdp7.com>
Tested-by: default avatarXi Ruoyao <xry111@xry111.site>
Signed-off-by: default avatarMaksim Kiselev <bigunclemax@gmail.com>
Acked-by: default avatarAdrian Hunter <adrian.hunter@intel.com>
Fixes: 43658a54

 ("mmc: sdhci-of-dwcmshc: Add support for T-Head TH1520")
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20240402093539.184287-1-bigunclemax@gmail.com
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent f8def10f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment