FROMLIST: 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 <>
(am from
Signed-off-by: Kevin Strasser <>

TEST=Check that max eMMC read latency on Cave/Caroline is under 30ms
TEST=`fio --name=trest --size=4k --readwrite=read`

Change-Id: Iedb13db830b10055fac57444c6fa912269fe95e3
Commit-Ready: Kevin Strasser <>
Tested-by: Russ Sage <>
Reviewed-by: Sonny Rao <>
(cherry picked from commit b7bf8e157faeca99a0670436ab3ea7f93c843962)
Tested-by: Sonny Rao <>
1 file changed