aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mmc/core.h
diff options
context:
space:
mode:
authorUlf Hansson <ulf.hansson@linaro.org>2020-03-16 16:21:52 +0100
committerUlf Hansson <ulf.hansson@linaro.org>2020-03-26 14:45:31 +0100
commit55c2b8b9a383487f4f083f62d163fe3278fece1a (patch)
tree399ca5d6f5ccc6a06eb229b81f8fcc28f9c82817 /include/linux/mmc/core.h
parentmmc: sdhci: use FIELD_GET for preset value bit masks (diff)
downloadlinux-dev-55c2b8b9a383487f4f083f62d163fe3278fece1a.tar.xz
linux-dev-55c2b8b9a383487f4f083f62d163fe3278fece1a.zip
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
Diffstat (limited to 'include/linux/mmc/core.h')
-rw-r--r--include/linux/mmc/core.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/include/linux/mmc/core.h b/include/linux/mmc/core.h
index b7ba8810a3b5..29aa50711626 100644
--- a/include/linux/mmc/core.h
+++ b/include/linux/mmc/core.h
@@ -107,9 +107,6 @@ struct mmc_command {
*/
unsigned int busy_timeout; /* busy detect timeout in ms */
- /* Set this flag only for blocking sanitize request */
- bool sanitize_busy;
-
struct mmc_data *data; /* data segment associated with cmd */
struct mmc_request *mrq; /* associated request */
};