]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: sdio: Align the initialization commands in retry path for UHS-I
authorUlf Hansson <ulf.hansson@linaro.org>
Thu, 30 Apr 2020 09:16:40 +0000 (11:16 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 28 May 2020 09:21:03 +0000 (11:21 +0200)
commit158dbaf2c92abeb697b19fc25dfb8b1524122080
tree83409874ec04c5284d003d383b2d9ca024d360aa
parent603b5472dc5c20cb0cfeb509b3f6efe2f0d65a55
mmc: sdio: Align the initialization commands in retry path for UHS-I

According to the comment in mmc_sdio_reinit_card(), some SDIO cards may
require a "[CMD5,5,3,7] init sequence", which isn't always obeyed in
mmc_sdio_init_card(). Especially, when we end up retrying the UHS-I
specific initialization, there is a missing CMD5.

Let's update the code to make the behaviour consistent and let's also take
the opportunity to clean up the code a bit, to avoid open coding.

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