]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mmc: sdhci_am654: Add retry tuning
authorJudith Mendez <jm@ti.com>
Wed, 4 Sep 2024 23:25:11 +0000 (18:25 -0500)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 5 Sep 2024 10:17:25 +0000 (12:17 +0200)
commit901d16e462963cb0d824144be7448505b15ff4d6
tree4f562889c5826496ca4e9028945b49fae14badbd
parent7e856617a1f34fc9714eaf562b78fcffacda4e3e
mmc: sdhci_am654: Add retry tuning

Add retry tuning up to 10 times if we fail to find
a failing region or no passing itapdly. This is
necessary since some eMMC has been observed to never
find a failing itapdly on the first couple of tuning
iterations, but eventually does. Keep count of current
tuning iteration using tuning_loop. It has been observed
that the tuning algorithm does not need to loop more
than 10 times before finding a failing itapdly.

Signed-off-by: Judith Mendez <jm@ti.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Link: https://lore.kernel.org/r/20240904232512.830778-2-jm@ti.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci_am654.c