From: Ulf Hansson Date: Wed, 9 May 2012 14:15:26 +0000 (+0200) Subject: mmc: core: Prevent eMMC VCC supply to be cut from late init X-Git-Tag: v3.5-rc1~85^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa5501890d8974301042e0202d342a6cbe8609f4;p=pandora-kernel.git 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 Reviewed-by: Mark Brown Signed-off-by: Chris Ball --- Reading git-diff-tree failed