mmc: block: Check for transfer state in card_busy_detect()
authorAdrian Hunter <adrian.hunter@intel.com>
Wed, 29 Nov 2017 13:41:12 +0000 (15:41 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 11 Dec 2017 11:44:38 +0000 (12:44 +0100)
commit0987c6b046e199b9b922a585c62e9503486fe0bc
tree0355b21c17c4716464358a1e714328cc3e6d54e6
parent7701885e56cee3de4447c0653f9059b62844983b
mmc: block: Check for transfer state in card_busy_detect()

The card is required to return to transfer state. Since that is the state
required to start another transfer, check for that state instead of
programming state.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Tested-by: Linus Walleij <linus.walleij@linaro.org>
drivers/mmc/core/block.c