mmc: block: Use generic_cmd6_time when modifying INAND_CMD38_ARG_EXT_CSD
authorUlf Hansson <ulf.hansson@linaro.org>
Wed, 22 Jan 2020 14:27:46 +0000 (15:27 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Fri, 24 Jan 2020 11:16:05 +0000 (12:16 +0100)
commitad91619aa9d78ab1c6d4a969c3db68bc331ae76c
treed5830777fd1e93f646305f5cd681f8bf457eff14
parent24ed3bd01d6a844fd5e8a75f48d0a3d10ed71bf9
mmc: block: Use generic_cmd6_time when modifying INAND_CMD38_ARG_EXT_CSD

The INAND_CMD38_ARG_EXT_CSD is a vendor specific EXT_CSD register, which is
used to prepare an erase/trim operation. However, it doesn't make sense to
use a timeout of 10 minutes while updating the register, which becomes the
case when the timeout_ms argument for mmc_switch() is set to zero.

Instead, let's use the generic_cmd6_time, as that seems like a reasonable
timeout to use for these cases.

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