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)
commitfa1e3191922bb6b59a64a1a03e461cde07ae1e62
tree812bb6b7bf659ca5856f06f24890613c315bb499
parenta94a59f43749b4f8cd81b8be87c95f9ef898d19d
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