]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: sdhci-cadence: do not use hardware tuning for SD mode
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Mon, 20 Jul 2020 06:11:41 +0000 (15:11 +0900)
committerUlf Hansson <ulf.hansson@linaro.org>
Fri, 24 Jul 2020 10:21:39 +0000 (12:21 +0200)
commit870da56a78f3a1c8bd7c2bef54aa73577fd12d52
tree0e89491c116dc64713a5bb3b054185152bef0cc1
parent9c9cb12fd519d4d686ef23d9c987ea1b55119260
mmc: sdhci-cadence: do not use hardware tuning for SD mode

As commit 13297f4f5e1e ("mmc: sdhci-cadence: send tune request twice to
work around errata") stated, this IP has an errata. This commit applies
the second workaround for the SD mode.

Due to the errata, it is not possible to use the hardware tuning provided
by SDHCI_HOST_CONTROL2.

Use the software-controlled tuning like the eMMC mode.

Set sdhci_host_ops::platform_execute_tuning instead of overriding
mmc_host_ops::execute_tuning.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Link: https://lore.kernel.org/r/20200720061141.172944-1-yamada.masahiro@socionext.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-cadence.c