]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: core: Default to generic_cmd6_time as timeout in __mmc_switch()
authorUlf Hansson <ulf.hansson@linaro.org>
Wed, 22 Jan 2020 14:27:47 +0000 (15:27 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Fri, 24 Jan 2020 11:17:05 +0000 (12:17 +0100)
commitec89a1e77c2ae6471a756937876d433d90eb5cab
tree0ad79476b091d3418a74d050baab5c0cf4c7ff30
parente91c7a07f2e9b837e4c670b08c5bd4c50ff9fb25
mmc: core: Default to generic_cmd6_time as timeout in __mmc_switch()

All callers of __mmc_switch() should now be specifying a valid timeout for
the CMD6 command. However, just to be sure, let's print a warning and
default to use the generic_cmd6_time in case the provided timeout_ms
argument is zero.

In this context, let's also simplify some of the corresponding code and
clarify some related comments.

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