Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c3227455 authored by Maya Erez's avatar Maya Erez
Browse files

mmc: sdhci-msm: enable partial initialization in resume



Enable partial init on eMMC devices for using card Sleep/Awake
sequence (CMD5).

Card will be sent to Sleep state during runtime/system suspend
and will be woken up during runtime/system resume.
By using this sequence the card doesn't need full initialization
which gives time reduction in system/runtime resume path.

Change-Id: Ide2b8050b56e858cda7bb22b4acf43b5bd3db786
Signed-off-by: default avatarTalel Shenhar <tatias@codeaurora.org>
Signed-off-by: default avatarMaya Erez <merez@codeaurora.org>
parent 85125f66
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -4066,6 +4066,7 @@ static int sdhci_msm_probe(struct platform_device *pdev)
	msm_host->mmc->caps2 |= MMC_CAP2_CLK_SCALE;
	msm_host->mmc->caps2 |= MMC_CAP2_SANITIZE;
	msm_host->mmc->caps2 |= MMC_CAP2_MAX_DISCARD_SIZE;
	msm_host->mmc->caps2 |= MMC_CAP2_SLEEP_AWAKE;

	if (msm_host->pdata->nonremovable)
		msm_host->mmc->caps |= MMC_CAP_NONREMOVABLE;