linux-stable/drivers/mmc/core
Adrian Hunter 0efa89742f mmc: block: Fix CQE recovery reset success
commit a051246b78 upstream.

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: 1e8e55b670 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-06-14 18:36:25 +02:00
..
block.c mmc: block: Fix CQE recovery reset success 2022-06-14 18:36:25 +02:00
block.h
bus.c
bus.h
card.h
core.c mmc: core: Disable card detect during shutdown 2021-12-29 12:28:56 +01:00
core.h mmc: core: Disable card detect during shutdown 2021-12-29 12:28:56 +01:00
crypto.c
crypto.h
debugfs.c
host.c mmc: host: Return an error when ->enable_sdio_irq() ops is missing 2022-04-08 14:24:02 +02:00
host.h
Kconfig
Makefile
mmc.c mmc: core: Set HS clock speed before sending HS CMD13 2022-05-12 12:30:02 +02:00
mmc_ops.c
mmc_ops.h
mmc_test.c
pwrseq.c
pwrseq.h
pwrseq_emmc.c
pwrseq_sd8787.c
pwrseq_simple.c
queue.c mmc: queue: Remove unused parameters(request_queue) 2021-08-25 11:14:42 +02:00
queue.h
quirks.h
regulator.c
sd.c mmc: core: Wait for command setting 'Power Off Notification' bit to complete 2022-02-16 12:56:04 +01:00
sd.h
sd_ops.c
sd_ops.h
sdio.c mmc: core: Fixup storing of OCR for MMC_QUIRK_NONSTD_SDIO 2022-01-27 11:04:42 +01:00
sdio_bus.c
sdio_bus.h
sdio_cis.c
sdio_cis.h
sdio_io.c
sdio_irq.c
sdio_ops.c
sdio_ops.h
sdio_uart.c
slot-gpio.c
slot-gpio.h