]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: block: Fix CQE recovery reset success
authorAdrian Hunter <adrian.hunter@intel.com>
Tue, 31 May 2022 17:19:22 +0000 (20:19 +0300)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 1 Jun 2022 12:22:51 +0000 (14:22 +0200)
commit3553a9a23b3e385327ef78c1bf8269debbbed505
treefa17f10cae2f9914107792ec80e81fe55dde0b06
parentb0997f07ec4cfffb22a0a26764282f61192b9861
mmc: block: Fix CQE recovery reset success

The intention of the use of mmc_blk_reset_success() in
mmc_blk_cqe_recovery() was to prevent repeated resets when retrying and
getting the same error. However, that may not be the case - any amount
of time and I/O may pass before another recovery is needed, in which
case there would be no reason to deny it the opportunity to recover via
a reset if necessary. CQE recovery is expected seldom and failure to
recover (if the clear tasks command fails), even more seldom, so it is
better to allow the reset always, which can be done by calling
mmc_blk_reset_success() always.

Fixes: 9bb328e8de4b5d ("mmc: block: Add CQE support")
Cc: stable@vger.kernel.org
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Link: https://lore.kernel.org/r/20220531171922.76080-1-adrian.hunter@intel.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/block.c