]> Git Repo - u-boot.git/commit
mmc: sdhci: clean up timeout detection
authorMasahiro Yamada <[email protected]>
Sat, 9 Jul 2016 15:40:22 +0000 (00:40 +0900)
committerJaehoon Chung <[email protected]>
Fri, 5 Aug 2016 02:21:24 +0000 (11:21 +0900)
commitbae4a1fdf59cddf02acd0070d1da7303fe5ffd0e
tree340017ad7e7845bbb339c011f2a73721871442e3
parente1efe43c710bec8d951c25f163cc8b0c5eb92294
mmc: sdhci: clean up timeout detection

The current timeout detection logic is not very nice; it calls
get_timer(start) in the while() loop, and then calls it again after
the loop to check if a timeout error happened.

Because of the time difference between the two calls of get_timer(),
the timeout detected after the loop may not be true.

Signed-off-by: Masahiro Yamada <[email protected]>
Acked-by: Jaehoon Chung <[email protected]>
Signed-off-by: Jaehoon Chung <[email protected]>
drivers/mmc/sdhci.c
This page took 0.033006 seconds and 4 git commands to generate.