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:
Sarthak Garg 2020-10-06 14:36:51 +05:30
commit c3d355d133

View file

@ -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: