]> 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)
commit53e2a2f6e015c7d3244e274b958d84b4eafb0507
treea178622db857d9bca2254f04c4e55eb2a7a3bc97
parentc412779ea069af779b13a3f8899bba03468ccf31
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