mmc: dw_mmc: Power on vqmmc in MMC_POWER_ON, not MMC_POWER_UP
authorDoug Anderson <dianders@chromium.org>
Tue, 13 Jan 2015 23:58:44 +0000 (15:58 -0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 19 Jan 2015 08:56:33 +0000 (09:56 +0100)
commit29d0d161c4ff252c3f9376d5ab05458a494a01ba
tree291760518cb42c81e320df235242bb8652133002
parentc63705e185210ce262f78bcc24fd98a2d0ed817c
mmc: dw_mmc: Power on vqmmc in MMC_POWER_ON, not MMC_POWER_UP

If we power up vqmmc in MMC_POWER_ON then we end up turning it on
before mmc_power_up() sets the signal voltage.  That's not so great
since we might be powering it up at the wrong voltage.

Note that this is how Yuvaraj originally coded things up in
<https://patchwork.kernel.org/patch/4401231/> but he changed it on my
suggestion.  Apparently I was wrong.

Reported-by: Alexandru M Stan <amstan@chromium.org>
Signed-off-by: Doug Anderson <dianders@chromium.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/dw_mmc.c