mmc: sdhci-of-esdhc: add delay between tuning cycles
authoryangbo lu <yangbo.lu@nxp.com>
Thu, 20 Apr 2017 08:14:44 +0000 (16:14 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 24 Apr 2017 19:42:27 +0000 (21:42 +0200)
It's observed that eSDHC needed delay between tuning cycles for
HS200 successful tuning. This patch is to set 1ms delay for that.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-of-esdhc.c

index 607e5122e1a136870554405326877c9c829749a7..7518360c03d23b2046402b1c96152ea70fca32f2 100644 (file)
@@ -810,6 +810,7 @@ static int sdhci_esdhc_probe(struct platform_device *pdev)
        host->mmc_host_ops.start_signal_voltage_switch =
                esdhc_signal_voltage_switch;
        host->mmc_host_ops.execute_tuning = esdhc_execute_tuning;
+       host->tuning_delay = 1;
 
        esdhc_init(pdev, host);