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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Aug 2020 06:23:37 +0000 (08:23 +0200)
commit1163c38e7e03dd19413efa70e5436b1ec672e555
treef1fe2a0a7d574915b09e16e451fb757847c28d53
parent8998c915db65cc3d1971cd243ca58eb1a39d9c69
mmc: sdhci-cadence: do not use hardware tuning for SD mode

[ Upstream commit adc40a5179df30421a5537bfeb4545100ab97d5e ]

As commit ef6b75671b5f ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/mmc/host/sdhci-cadence.c