summaryrefslogtreecommitdiff
path: root/drivers/mmc/host/sdhci-of-at91.c
diff options
context:
space:
mode:
authorAdrian Hunter <adrian.hunter@intel.com>2017-03-20 20:50:31 +0300
committerUlf Hansson <ulf.hansson@linaro.org>2017-04-24 22:41:26 +0300
commit5a436cc0af6202265de0d2d2d35f1b4fd85caf3b (patch)
tree401f9c7f6f131b1239d249f6e1a25b4b53cc2b3e /drivers/mmc/host/sdhci-of-at91.c
parent660fc733bd7436f4fa1a351376493e635514ed64 (diff)
downloadlinux-5a436cc0af6202265de0d2d2d35f1b4fd85caf3b.tar.xz
mmc: sdhci: Optimize delay loops
The delay loops for reset and clock enable always take at least 1 ms because they use mdelay(1). However they can take a lot less time e.g. less than 50us. Use ktime and reduce the delay to 10 microseconds per loop. Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Tested-by: Ludovic Desroches <ludovic.desroches@microchip.com>
Diffstat (limited to 'drivers/mmc/host/sdhci-of-at91.c')
0 files changed, 0 insertions, 0 deletions