]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: sdio: Re-use negotiated OCR mask when re-sending CMD8
authorUlf Hansson <ulf.hansson@linaro.org>
Thu, 30 Apr 2020 09:16:39 +0000 (11:16 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 28 May 2020 09:21:03 +0000 (11:21 +0200)
commit603b5472dc5c20cb0cfeb509b3f6efe2f0d65a55
tree812bb6b7bf659ca5856f06f24890613c315bb499
parent87344ac0975e6815af4fb93ad1c74750c0cc8444
mmc: sdio: Re-use negotiated OCR mask when re-sending CMD8

While initializing an SDIO card in mmc_sdio_init_card(), we may need to
retry the UHS-I specific initialization, in case the first attempt fails.

This leads to resending a CMD8, but also to restart from scratch with the
so called OCR mask negotiations. This is unnecessary as we already have a
negotiated OCR mask, so let's use that instead. In this way, the behaviour
also becomes more consistent with other similar paths.

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