Re: [U-Boot] [PATCH] mmc: sdhci: clean up time out detection

2016-07-08 Thread Jaehoon Chung
Hi Masahiro, On 07/08/2016 07:58 PM, Masahiro Yamada wrote: > 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 ca

[U-Boot] [PATCH] mmc: sdhci: clean up time out detection

2016-07-08 Thread Masahiro Yamada
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_time(), the reason detected after the loop may not be really