]> git.dujemihanovic.xyz Git - u-boot.git/commit
mmc: Continue polling MMC card for OCR only if it is still not ready
authorAndrew Gabbasov <andrew_gabbasov@mentor.com>
Thu, 19 Mar 2015 12:44:05 +0000 (07:44 -0500)
committerPantelis Antoniou <pantelis.antoniou@konsulko.com>
Tue, 5 May 2015 08:54:40 +0000 (11:54 +0300)
commitcc17c01f2d3b691ddadbd46727d5f22db0a90808
treea4ea6b1ffdc8441b2d8fa23a7ecdd372edb40f8c
parent5289b5350ba5442cfcfbb18488b3a9d9e4f39ede
mmc: Continue polling MMC card for OCR only if it is still not ready

Some MMC cards come to ready state quite quickly, so that the respective
flag appears to be set in mmc_send_op_cond already. In this case trying
to continue polling the card with CMD1 in mmc_complete_op_cond is incorrect
and may lead to unpredictable results. So check the flag before polling
and skip it appropriately.

Signed-off-by: Andrew Gabbasov <andrew_gabbasov@mentor.com>
drivers/mmc/mmc.c