]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit50795e84fcb90f07175c29f3aa1f03498a385934
tree2c37ba5673bc2f04d754a31e84dd367cdfbe6ac5
parent8c8cda4dfe1539f4900339ef7c30ee4e69d2b265
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