add missing mmc_test_wait_busy() to the check_result_async(). Host drivers may fail it not waiting for busy state to go away before starting the next transaction.
Signed-off-by: Per Forlin per.forlin@linaro.org --- drivers/mmc/card/mmc_test.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/drivers/mmc/card/mmc_test.c b/drivers/mmc/card/mmc_test.c index 5325049..ea8e7b1 100644 --- a/drivers/mmc/card/mmc_test.c +++ b/drivers/mmc/card/mmc_test.c @@ -715,13 +715,14 @@ static int mmc_test_check_result(struct mmc_test_card *test, return ret; }
- static int mmc_test_check_result_async(struct mmc_card *card, struct mmc_async_req *areq) { struct mmc_test_async_req *test_async = container_of(areq, struct mmc_test_async_req, areq);
+ mmc_test_wait_busy(test_async->test); + return mmc_test_check_result(test_async->test, areq->mrq); }