]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
mmc: sdhci: switch voltage before sdhci_set_ios in runtime resume
authorJisheng Zhang <jszhang@marvell.com>
Thu, 29 Jan 2015 09:42:12 +0000 (17:42 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 29 Jan 2015 10:28:06 +0000 (11:28 +0100)
commit3396e7361159753047965d1ed134ff7af248d64c
tree3e301dae37ae680ff9f191ec8846ae0abc60fa0b
parent352ee868dda03ca72e60d4853356881ff161ec23
mmc: sdhci: switch voltage before sdhci_set_ios in runtime resume

I observed the Host Control2 register isn't correctly restored
after runtime resuming on BG2Q. For example, the register reads
as 0x800c before runtime suspend, but it's set as 0x8004 after runtime
resuming. This could results in a non working host.

The reason is the Host Control2 is incorrectly reset when switching
voltage. We fix this by following the same sequence during initialization.

Signed-off-by: Jisheng Zhang <jszhang@marvell.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci.c