]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: mmc_spi: Add/rename defines for timeouts
authorUlf Hansson <ulf.hansson@linaro.org>
Tue, 14 Apr 2020 16:14:11 +0000 (18:14 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 28 May 2020 09:21:02 +0000 (11:21 +0200)
commit912a783b11beeca6dd16beac171ca383041acc04
tree9a7edb204037c9e89238d9a3631432432d868d12
parent2b75dbb297cf9abaed4d9b5cbec3fc89abb86eec
mmc: mmc_spi: Add/rename defines for timeouts

Clarify the use of r1b_timeout, by renaming it to MMC_SPI_R1B_TIMEOUT_MS
and by dropping the corresponding confusing comment about it.

Additionally, let's also add a new define, MMC_SPI_INIT_TIMEOUT_MS and use
it during the initialization. Even if these two defines are given the same
value, the split makes it easier to understand them.

Cc: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
Cc: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Link: https://lore.kernel.org/r/20200414161413.3036-18-ulf.hansson@linaro.org
drivers/mmc/host/mmc_spi.c