mmc: core: Specify timeouts for BKOPS and CACHE_FLUSH for eMMC
authorUlf Hansson <ulf.hansson@linaro.org>
Wed, 22 Jan 2020 14:27:45 +0000 (15:27 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Fri, 24 Jan 2020 11:16:05 +0000 (12:16 +0100)
commit24ed3bd01d6a844fd5e8a75f48d0a3d10ed71bf9
tree2c37ba5673bc2f04d754a31e84dd367cdfbe6ac5
parent1d45a3f47c0be28989cdbace166e4f73214ff88c
mmc: core: Specify timeouts for BKOPS and CACHE_FLUSH for eMMC

The timeout values used while waiting for a CMD6 for BKOPS or a CACHE_FLUSH
to complete, are not defined by the eMMC spec. However, a timeout of 10
minutes as is currently being used, is just silly for both of these cases.
Instead, let's specify more reasonable timeouts, 120s for BKOPS and 30s for
CACHE_FLUSH.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Link: https://lore.kernel.org/r/20200122142747.5690-2-ulf.hansson@linaro.org
drivers/mmc/core/mmc_ops.c