author: Yann Gautier <yann.gautier@foss.st.com> 2021-12-15 15:17:26 +0100
committer: Ulf Hansson <ulf.hansson@linaro.org> 2021-12-21 13:03:51 +0100
commit: ff31ee0a0f471776f67be5e5275c18d17736fc6b
parent: f89b548ca66be7500dcd92ee8e61590f7d08ac91
Commit Summary:
Diffstat:
1 file changed, 2 insertions, 0 deletions
diff --git a/drivers/mmc/host/mmci_stm32_sdmmc.c b/drivers/mmc/host/mmci_stm32_sdmmc.c
index fdaa11f92fe6..a75d3dd34d18 100644
--- a/drivers/mmc/host/mmci_stm32_sdmmc.c
+++ b/drivers/mmc/host/mmci_stm32_sdmmc.c
@@ -441,6 +441,8 @@ static int sdmmc_dlyb_phase_tuning(struct mmci_host *host, u32 opcode)
return -EINVAL;
}
+ writel_relaxed(0, dlyb->base + DLYB_CR);
+
phase = end_of_len - max_len / 2;
sdmmc_dlyb_set_cfgr(dlyb, dlyb->unit, phase, false);