]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: block: blk-mq: Stop using legacy recovery
authorAdrian Hunter <adrian.hunter@intel.com>
Wed, 29 Nov 2017 13:41:15 +0000 (15:41 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 11 Dec 2017 11:44:39 +0000 (12:44 +0100)
commit7eb43d537166c7d767af450901acd0ecbf94625c
treea178622db857d9bca2254f04c4e55eb2a7a3bc97
parent6b7a363d2ce83e3940dc0c3628e478fe95f23985
mmc: block: blk-mq: Stop using legacy recovery

There are only a few things the recovery needs to do. Primarily, it just
needs to:
Determine the number of bytes transferred
Get the card back to transfer state
Determine whether to retry

There are also a couple of additional features:
Reset the card before the last retry
Read one sector at a time

The legacy code spent much effort analyzing command errors, but commands
fail fast, so it is simpler just to give all command errors the same number
of retries.

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