OSDN Git Service

mmc: sdhci-esdhc-imx: add delay between tuning cycles
authorBOUGH CHEN <haibo.chen@nxp.com>
Fri, 28 Dec 2018 08:35:46 +0000 (08:35 +0000)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 25 Feb 2019 07:40:58 +0000 (08:40 +0100)
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 <haibo.chen@nxp.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-esdhc-imx.c

index 2e50e71..16b2840 100644 (file)
@@ -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);