Skip to content
Snippets Groups Projects
Commit eb9a28f6 authored by Nishanth Menon's avatar Nishanth Menon Committed by Sandeep Paulraj
Browse files

mmc: omap: timeout counter fix


Having a loop with a counter is no timing guarentee for timing
accuracy or compiler optimizations. For e.g. the same loop counter
which runs when the MPU is running at 600MHz will timeout in around
half the time when running at 1GHz. or the example where GCC 4.5
compiles with different optimization compared to GCC 4.4. use timer
to keep track of time elapse and we use an emperical number - 1sec
for a worst case timeout.  This should never happen, and is adequate
imaginary condition for us to fail with timeout.

Signed-off-by: default avatarNishanth Menon <nm@ti.com>
Signed-off-by: default avatarSandeep Paulraj <s-paulraj@ti.com>
parent f35d61ac
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment