mmc: core: reset card voltage after power off
authorUlf Hansson <ulf.hansson@stericsson.com>
Sat, 5 Mar 2011 13:36:24 +0000 (14:36 +0100)
committerChris Ball <cjb@laptop.org>
Thu, 17 Mar 2011 19:35:13 +0000 (15:35 -0400)
commitb33d46c398fd071dccd0815f33620924684860cd
tree1b83b93235a825fee112865d0627b069d4d5348a
parentab1efd271704416c9e6e9cb4e5f58e7e4c4260e6
mmc: core: reset card voltage after power off

At power off, reset OCR mask to be the highest possible voltage
supported for the current mmc host.

This solves the re-initialization during the power up sequence.
The voltage may have been decreased due to the card accepts a lower
voltage than the voltage used during the initialization sequence.
We need to reset the voltage to by the host highest possible value
since according to specification the initialization must always be
done at high voltage.

Reviewed-by: Jonas Aberg <jonas.aberg@stericsson.com>
Signed-off-by: Ulf Hansson <ulf.hansson@stericsson.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/core/core.c