mmc: core: Use userland specified timeout value for eMMC sanitize
authorBean Huo <beanhuo@micron.com>
Fri, 2 Apr 2021 09:24:31 +0000 (11:24 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 12 Apr 2021 06:50:44 +0000 (08:50 +0200)
commit4f111d04fb350e1d6930ee80ee700b6e43bdf6f7
treefb955dd5170eb2420fd1417782467f2ebf03e9d7
parent2970134b927834e9249659a70aac48e62dff804a
mmc: core: Use userland specified timeout value for eMMC sanitize

As the density increases, the 4-minute timeout value for sanitize is no
longer feasible. At the same time, devices of different densities have
different timeout values, which makes it difficult to use a common timeout
value. Therefore, let's pass down the userland-specified sanitize timeout
value so it can be used.

Signed-off-by: Bean Huo <beanhuo@micron.com>
Link: https://lore.kernel.org/r/20210402092432.25069-2-huobean@gmail.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/block.c
drivers/mmc/core/mmc_ops.c
drivers/mmc/core/mmc_ops.h