mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 07:37:31 -04:00
mmc: core: Avoid mmc_power_off during shutdown/reboot
During shutdown/sleep putting vdd-io in LPM mode after sending the Poweroff notify command is leading to OCP. Avoid putting vdd-io in LPM mode during shutdown/sleep. This change is inline with earlier kernels. Change-Id: I08698bc8b4f1c420910747b6374485f6265d553b Signed-off-by: Sarthak Garg <sartgarg@codeaurora.org>
This commit is contained in:
parent
5168327a4f
commit
c3d355d133
1 changed files with 2 additions and 1 deletions
|
|
@ -2041,7 +2041,8 @@ static int _mmc_suspend(struct mmc_host *host, bool is_suspend)
|
|||
err = mmc_deselect_cards(host);
|
||||
|
||||
if (!err) {
|
||||
mmc_power_off(host);
|
||||
if (is_suspend)
|
||||
mmc_power_off(host);
|
||||
mmc_card_set_suspended(host->card);
|
||||
}
|
||||
out:
|
||||
|
|
|
|||
Loading…
Reference in a new issue