Home
last modified time | relevance | path

Searched hist:"1677 eef4" (Results 1 – 1 of 1) sorted by relevance

/openbmc/u-boot/drivers/mmc/
H A Dmmc.c1677eef4 Thu Mar 19 07:44:06 CDT 2015 Andrew Gabbasov <andrew_gabbasov@mentor.com> mmc: Restructure polling loops to avoid extra delays

The polling loops in sd_send_op_cond and mmc_complete_op_cond functions
check the ready flag state at the end of the loop, that is after executing
a delay inside the loop, which, in case of exiting with no error,
is not needed. Also, one of these loops, as well as the loop
in mmc_send_status, have the delay just before exiting on timeout
conditions.

Restructure all these loops to check the respective conditions before making
a delay for the next loop pass, and to appropriately exit without the delay.

Signed-off-by: Andrew Gabbasov <andrew_gabbasov@mentor.com>