mmc: sdhci-esdhc: Change delay after setting clock from 100ms to 1ms
authorTony Lin <tony.lin@freescale.com>
Tue, 22 Nov 2011 06:42:30 +0000 (14:42 +0800)
committerChris Ball <cjb@laptop.org>
Thu, 12 Jan 2012 04:58:41 +0000 (23:58 -0500)
1ms is enough for hardware to change the clock to stable.
100ms is too long in the tasklet.

Signed-off-by: Tony Lin <tony.lin@freescale.com>
CC: Xiaobo Xie <X.Xie@freescale.com>
CC: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/sdhci-esdhc.h

index c3b08f1..b97b2f5 100644 (file)
@@ -73,7 +73,7 @@ static inline void esdhc_set_clock(struct sdhci_host *host, unsigned int clock)
                | (div << ESDHC_DIVIDER_SHIFT)
                | (pre_div << ESDHC_PREDIV_SHIFT));
        sdhci_writel(host, temp, ESDHC_SYSTEM_CONTROL);
-       mdelay(100);
+       mdelay(1);
 out:
        host->clock = clock;
 }