From: yangbo lu Date: Thu, 20 Apr 2017 08:14:44 +0000 (+0800) Subject: mmc: sdhci-of-esdhc: add delay between tuning cycles X-Git-Tag: kvm-4.12-2~73^2~13 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=6b236f37b0fa88fac93e6782fd25cbf9907e5048;p=users%2Fdwmw2%2Flinux.git mmc: sdhci-of-esdhc: add delay between tuning cycles 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 Acked-by: Adrian Hunter Signed-off-by: Ulf Hansson --- diff --git a/drivers/mmc/host/sdhci-of-esdhc.c b/drivers/mmc/host/sdhci-of-esdhc.c index 607e5122e1a13..7518360c03d23 100644 --- a/drivers/mmc/host/sdhci-of-esdhc.c +++ b/drivers/mmc/host/sdhci-of-esdhc.c @@ -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);