OpenCloudOS-Kernel/include/linux/mmc
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
..
card.h mmc: core: Fix size overflow for mmc partitions 2019-11-18 10:05:38 +01:00
core.h mmc: core: Re-work the code for eMMC sanitize 2020-03-26 14:45:31 +01:00
host.h mmc: Replace zero-length array with flexible-array member 2020-03-24 14:39:45 +01:00
mmc.h mmc: core: Enable re-use of mmc_blk_in_tran_state() 2020-03-24 14:35:39 +01:00
pm.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
sd.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
sdhci-pci-data.h MMC core: 2017-11-13 10:17:35 -08:00
sdio.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
sdio_func.h mmc: Replace zero-length array with flexible-array member 2020-03-24 14:39:45 +01:00
sdio_ids.h brcmfmac: add support for BCM4359 SDIO chipset 2019-12-18 21:07:42 +02:00
sh_mmcif.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 178 2019-05-30 11:29:19 -07:00
slot-gpio.h mmc: core: Remove mmc_gpiod_request_*(invert_gpio) 2019-12-18 13:37:07 +01:00