]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: core: when downgrading HS400, callback into drivers earlier
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Tue, 1 Sep 2020 15:02:47 +0000 (17:02 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 7 Sep 2020 07:16:31 +0000 (09:16 +0200)
commit4d978e90bff06b6a673bb0e5b9014057f69d58cb
treee1d69f67ebca5d70eb8c85ab8b2fe1a739a286d5
parente3f3bc4b7bef3c81dbd39807418fe481d3871b3f
mmc: core: when downgrading HS400, callback into drivers earlier

The driver specific downgrade function makes more sense if we run it
before we set the timing to something lower, not after. Otherwise some
non-HS400 communication has already happened.

No need to convert users. There is only one currently which needs this
change in a following patch.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Tested-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Link: https://lore.kernel.org/r/20200901150250.26236-2-wsa+renesas@sang-engineering.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/mmc.c