mmc: sdhci-of-esdhc: re-implement erratum A-009204 workaround
authorYangbo Lu <yangbo.lu@nxp.com>
Thu, 19 Dec 2019 03:23:35 +0000 (11:23 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 19 Dec 2019 07:13:43 +0000 (08:13 +0100)
commitf667216c5c7c967c3e568cdddefb51fe606bfe26
tree4c722aad3d0911c5091e9f8d5072c62eed9d0de3
parent75d27ea1abf7af3cc2cdec3513e74f52191605c8
mmc: sdhci-of-esdhc: re-implement erratum A-009204 workaround

The erratum A-009204 workaround patch was reverted because of
incorrect implementation.

8b6dc6b mmc: sdhci-of-esdhc: Revert "mmc: sdhci-of-esdhc: add
        erratum A-009204 support"

This patch is to re-implement the workaround (add a 5 ms delay
before setting SYSCTL[RSTD] to make sure all the DMA transfers
are finished).

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
Link: https://lore.kernel.org/r/20191219032335.26528-1-yangbo.lu@nxp.com
Fixes: 5dd195522562 ("mmc: sdhci-of-esdhc: add erratum A-009204 support")
Cc: stable@vger.kernel.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-of-esdhc.c