commit | 5a513ca72201c5486827f8835b5f87033a021c70 | [log] [tgz] |
---|---|---|
author | Andrew Gabbasov <andrew_gabbasov@mentor.com> | Thu Mar 19 07:44:05 2015 -0500 |
committer | Pantelis Antoniou <pantelis.antoniou@konsulko.com> | Tue May 05 11:54:40 2015 +0300 |
tree | a4ea6b1ffdc8441b2d8fa23a7ecdd372edb40f8c | |
parent | fafa6a0ed257d74456457d8a97d50a12ff25b1c2 [diff] |
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>