Skip to content
Commit bae4a1fd authored by Masahiro Yamada's avatar Masahiro Yamada Committed by Jaehoon Chung
Browse files

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: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
Acked-by: default avatarJaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: default avatarJaehoon Chung <jh80.chung@samsung.com>
parent e1efe43c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment