]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: sdhci-of-at91: wait for calibration done before proceed
authorClaudiu Beznea <claudiu.beznea@microchip.com>
Fri, 24 Sep 2021 08:28:50 +0000 (11:28 +0300)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 6 Oct 2021 15:23:27 +0000 (17:23 +0200)
commit0f1d2acb8caa9b2ae0386d3a06740fc9a9fa34e1
treeb0b104a3111f9a309a4f317d133c2cc64ea809a4
parent87a799989d15ec119f470890374f7bd919def84c
mmc: sdhci-of-at91: wait for calibration done before proceed

Datasheet specifies that at the end of calibration the SDMMC_CALCR_EN
bit will be cleared. No commands should be send before calibration is
done.

Fixes: 5a5c9211395a9 ("mmc: sdhci-of-at91: fix CALCR register being rewritten")
Fixes: 04c94649636dc ("mmc: sdhci-of-at91: add DT property to enable calibration on full reset")
Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20210924082851.2132068-2-claudiu.beznea@microchip.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-of-at91.c