linux_dsm_epyc7002/drivers/mmc/core
Ulf Hansson 55c2b8b9a3 mmc: core: Re-work the code for eMMC sanitize
The error path for sanitize operations that completes with -ETIMEDOUT, is
tightly coupled with the internal request handling code of the core. More
precisely, mmc_wait_for_req_done() checks for specific sanitize errors.
This is not only inefficient as it affects all types of requests, but also
hackish.

Therefore, let's improve the behaviour by moving the error path out of the
mmc core. To do that, retuning needs to be held while running the sanitize
operation.

Moreover, to avoid exporting unnecessary symbols to the mmc block module,
let's move the code into the mmc_ops.c file. While updating the actual
code, let's also take the opportunity to clean up some of the mess around
it.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Link: https://lore.kernel.org/r/20200316152152.15122-1-ulf.hansson@linaro.org
2020-03-26 14:45:31 +01:00
..
block.c mmc: core: Re-work the code for eMMC sanitize 2020-03-26 14:45:31 +01:00
block.h
bus.c
bus.h
card.h
core.c mmc: core: Re-work the code for eMMC sanitize 2020-03-26 14:45:31 +01:00
core.h
debugfs.c
host.c mmc: core: Remove mmc_gpiod_request_*(invert_gpio) 2019-12-18 13:37:07 +01:00
host.h
Kconfig
Makefile
mmc_ops.c mmc: core: Re-work the code for eMMC sanitize 2020-03-26 14:45:31 +01:00
mmc_ops.h mmc: core: Re-work the code for eMMC sanitize 2020-03-26 14:45:31 +01:00
mmc_test.c mmc: mmc_test: Pass different sg lists for non-blocking requests 2020-03-24 14:35:42 +01:00
mmc.c mmc: core: Drop redundant in-parameter to __mmc_switch() 2020-03-24 14:35:39 +01:00
pwrseq_emmc.c
pwrseq_sd8787.c
pwrseq_simple.c
pwrseq.c
pwrseq.h
queue.c mmc: Add MMC host software queue support 2020-03-24 14:35:39 +01:00
queue.h
quirks.h
regulator.c
sd_ops.c
sd_ops.h
sd.c mmc: core: Enable the MMC host software queue for the SD card 2020-03-24 14:35:39 +01:00
sd.h
sdio_bus.c
sdio_bus.h
sdio_cis.c
sdio_cis.h
sdio_io.c
sdio_irq.c mmc: core: Fix indentation 2020-03-24 14:35:42 +01:00
sdio_ops.c
sdio_ops.h
sdio_uart.c
sdio.c
slot-gpio.c mmc: core: Remove mmc_gpiod_request_*(invert_gpio) 2019-12-18 13:37:07 +01:00
slot-gpio.h