]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mmc: core: Prevent eMMC VCC supply to be cut from late init
authorUlf Hansson <ulf.hansson@linaro.org>
Wed, 9 May 2012 14:15:26 +0000 (16:15 +0200)
committerChris Ball <cjb@laptop.org>
Wed, 9 May 2012 16:55:01 +0000 (12:55 -0400)
commitfa5501890d8974301042e0202d342a6cbe8609f4
treeae127577d2591e22eed2621d87d1b289e016f3f6
parent95dcc2cb6c9c84555c29187f8b7cf39e83991a29
mmc: core: Prevent eMMC VCC supply to be cut from late init

For eMMC cards that has been initialized from a bootloader,
the VCC voltage supply must not be cut in an uncontrolled
manner, without first sending SLEEP or POWEROFF_NOTIFY.

The regulator_init_complete late initcall, may cut the VCC
regulator if it's reference counter is zero. To be able to
prevent the regulator from being cut, mmc_start_host, which
should execute at device init and thus before late init,
calls mmc_power_up. Then the host driver is able to increase
the reference to the regulator.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Reviewed-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/core/core.c