mmc: sdhci-of-esdhc: poll ESDHC_CLOCK_STABLE bit with udelay
authoryangbo lu <yangbo.lu@nxp.com>
Wed, 26 Apr 2017 02:45:49 +0000 (10:45 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Fri, 28 Apr 2017 10:35:27 +0000 (12:35 +0200)
commite145ac451eb68b51e0ede4c131bd5a539fb675b6
tree034830c2ecd85c51ce7f2609937396190ceef159
parenta04b9b47ae587e088439495f31ca740d92191a75
mmc: sdhci-of-esdhc: poll ESDHC_CLOCK_STABLE bit with udelay

The loop to poll ESDHC_CLOCK_STABLE bit with mdelay would waste time
because the time to stabilize is much less than 1 ms. This patch is
to use udelay instead to avoid time wasting.

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