Message ID | 1596714504-16313-1-git-send-email-haibo.chen@nxp.com |
---|---|
State | New |
Headers | show |
Series | mmc: host: sdhci-esdhc-imx: reset usdhc before sending tuning command for manual tuning method | expand |
diff --git a/drivers/mmc/host/sdhci-esdhc-imx.c b/drivers/mmc/host/sdhci-esdhc-imx.c index a76b4513fbec..e4694eb1b914 100644 --- a/drivers/mmc/host/sdhci-esdhc-imx.c +++ b/drivers/mmc/host/sdhci-esdhc-imx.c @@ -990,6 +990,7 @@ static void esdhc_prepare_tuning(struct sdhci_host *host, u32 val) /* FIXME: delay a bit for card to be ready for next tuning due to errors */ mdelay(1); + sdhci_reset(host, SDHCI_RESET_ALL); reg = readl(host->ioaddr + ESDHC_MIX_CTRL); reg |= ESDHC_MIX_CTRL_EXE_TUNE | ESDHC_MIX_CTRL_SMPCLK_SEL |