]> git.kernelconcepts.de Git - karo-tx-uboot.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)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 20:36:30 +0000 (22:36 +0200)
commit43ebd6dc166b8d3c7124d56f1f87695f56cae40d
treed9523a27485817b7a7d62023e3b193bc973e36cd
parentb466a0ac51e5654cdf92692df6c4365ce117fb9e
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