From: BOUGH CHEN Date: Fri, 28 Dec 2018 08:35:46 +0000 (+0000) Subject: mmc: sdhci-esdhc-imx: add delay between tuning cycles X-Git-Tag: v5.1-rc1~184^2~63 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=d00ab1010c2e8e7e710697c39fb9b7e4fa7dd9c1;p=uclinux-h8%2Flinux.git mmc: sdhci-esdhc-imx: add delay between tuning cycles It's observed that i.MX uSDHC needed delay between tuning cycles for HS200 successful tuning. This patch is to set 1ms delay for that. Signed-off-by: Haibo Chen Acked-by: Adrian Hunter Signed-off-by: Ulf Hansson --- diff --git a/drivers/mmc/host/sdhci-esdhc-imx.c b/drivers/mmc/host/sdhci-esdhc-imx.c index 2e50e71cdae5..16b2840bc05a 100644 --- a/drivers/mmc/host/sdhci-esdhc-imx.c +++ b/drivers/mmc/host/sdhci-esdhc-imx.c @@ -1390,6 +1390,8 @@ static int sdhci_esdhc_imx_probe(struct platform_device *pdev) if (err) goto disable_ahb_clk; + host->tuning_delay = 1; + sdhci_esdhc_imx_hwinit(host); err = sdhci_add_host(host);