]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
mmc: bcm2835_sdhci: Restore original delay behavior
authorMarek Vasut <marex@denx.de>
Fri, 19 Jun 2015 21:39:41 +0000 (23:39 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 22:42:56 +0000 (00:42 +0200)
commit487434cd70cac852b72057731964aa069804fa9e
tree950dbeef948cfdb3380bacfd2697575a131c2cff
parentdae30ff96926918dd4f21f84f0d0212d51fd01a1
mmc: bcm2835_sdhci: Restore original delay behavior

Patch 33fe2fb8df01647f97a7bce96a1c7781a7f6d253 titled
"mmc: bcm283x: Remove get_timer_us() from mmc driver"
incorrectly replaced ad-hoc get_timer_us() function
with a plain get_timer(). The get_timer() operates in
mSec units instead of uSec though, which caused very
slow operation of the driver.

Restore the original behavior of the driver, but avoid
get_timer_us() and use timer_get_us() instead. The later
is part of the standard API.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Jakub Kiciński <moorray3@wp.pl>
Cc: Stephen Warren <swarren@wwwdotorg.org>
Tested-by: Jakub Kicinski <kubakici@wp.pl>
drivers/mmc/bcm2835_sdhci.c