mmc: block: break out mmc_blk_rw_cmd_abort()
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 24 Jan 2017 10:17:52 +0000 (11:17 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 13 Feb 2017 12:20:37 +0000 (13:20 +0100)
commit4e1f780032c56894e8d7b6685b029b718588f483
treeff61a0ef3011b2b9cadaf1fd21c0ae99b890fc70
parente64aae82eac5397d9976142b9224d4a41424ee54
mmc: block: break out mmc_blk_rw_cmd_abort()

As a first step toward breaking apart the very complex function
mmc_blk_issue_rw_rq() we break out the command abort code.
This code assumes "ret" is != 0 and then repeatedly hammers
blk_end_request() until the request to the block layer to end
the request succeeds.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/block.c