mmc: sdhci-of-esdhc: make sure delay chain locked for HS400
authorYangbo Lu <yangbo.lu@nxp.com>
Tue, 20 Oct 2020 08:11:16 +0000 (16:11 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 28 Oct 2020 10:07:01 +0000 (11:07 +0100)
commit011fde48394b7dc8dfd6660d1013b26a00157b80
tree32eb5b755edc7802a913b984e1ed027792d9a8fe
parent0add6e9b88d0632a25323aaf4987dbacb0e4ae64
mmc: sdhci-of-esdhc: make sure delay chain locked for HS400

For eMMC HS400 mode initialization, the DLL reset is a required step
if DLL is enabled to use previously, like in bootloader.
This step has not been documented in reference manual, but the RM will
be fixed sooner or later.

This patch is to add the step of DLL reset, and make sure delay chain
locked for HS400.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Link: https://lore.kernel.org/r/20201020081116.20918-1-yangbo.lu@nxp.com
Fixes: 54e08d9a95ca ("mmc: sdhci-of-esdhc: add hs400 mode support")
Cc: stable@vger.kernel.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-esdhc.h
drivers/mmc/host/sdhci-of-esdhc.c