Skip to content
Snippets Groups Projects
Commit 1677eef4 authored by Andrew Gabbasov's avatar Andrew Gabbasov Committed by Pantelis Antoniou
Browse files

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: default avatarAndrew Gabbasov <andrew_gabbasov@mentor.com>
parent cc17c01f
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