aboutsummaryrefslogtreecommitdiff
path: root/drivers/mmc/host/mmci.c
diff options
context:
space:
mode:
authorGravatar Yann Gautier <yann.gautier@foss.st.com> 2021-12-15 15:17:26 +0100
committerGravatar Ulf Hansson <ulf.hansson@linaro.org> 2021-12-21 13:03:51 +0100
commitff31ee0a0f471776f67be5e5275c18d17736fc6b (patch)
treec65d016b00e8aa3a9e36b8a11dea7865ac724557 /drivers/mmc/host/mmci.c
parentmmc: meson-mx-sdhc: Set MANUAL_STOP for multi-block SDIO commands (diff)
downloadlinux-ff31ee0a0f471776f67be5e5275c18d17736fc6b.tar.gz
linux-ff31ee0a0f471776f67be5e5275c18d17736fc6b.tar.bz2
linux-ff31ee0a0f471776f67be5e5275c18d17736fc6b.zip
mmc: mmci: stm32: clear DLYB_CR after sending tuning command
During test campaign, and especially after several unbind/bind sequences, it has been seen that the SD-card on SDMMC1 thread could freeze. The freeze always appear on a CMD23 following a CMD19. Checking SDMMC internal registers shows that the tuning command (CMD19) has failed. The freeze is then due to the delay block involved in the tuning sequence. To correct this, clear the delay block register DLYB_CR register after the tuning commands. Signed-off-by: Christophe Kerello <christophe.kerello@foss.st.com> Signed-off-by: Yann Gautier <yann.gautier@foss.st.com> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Fixes: 1103f807a3b9 ("mmc: mmci_sdmmc: Add execute tuning with delay block") Cc: stable@vger.kernel.org Link: https://lore.kernel.org/r/20211215141727.4901-4-yann.gautier@foss.st.com Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc/host/mmci.c')
0 files changed, 0 insertions, 0 deletions