mmc: core: complete HS400 before checking status
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Tue, 11 Jun 2019 20:03:43 +0000 (22:03 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 17 Jun 2019 11:18:11 +0000 (13:18 +0200)
commitb0e370b95a3b231d0fb5d1958cce85ef57196fe6
treee2226e70bfbbd45948598e95267afbaf575ee6ef
parent97bf85b6ec9e6597ce81c79b26a28f7918fc4eaf
mmc: core: complete HS400 before checking status

We don't have a reproducible error case, yet our BSP team suggested that
the mmc_switch_status() command in mmc_select_hs400() should come after
the callback into the driver completing HS400 setup. It makes sense to
me because we want the status of a fully setup HS400, so it will
increase the reliability of the mmc_switch_status() command.

Reported-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Fixes: ba6c7ac3a2f4 ("mmc: core: more fine-grained hooks for HS400 tuning")
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/mmc.c