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

Commit aba7a783 authored by Sarthak Garg's avatar Sarthak Garg
Browse files

mmc: core: Suspend cqe during sdhci_msm_reset



During suspend/resume cycle CQE s/w state machine remains active state
(i.e, CQE is in the enabled state) but since suspend/resume triggers
shdci_reset,CQE gets reset and would be in disable state.
There is a mismatch between s/w sate and h/w state which leads to
s/w request timeout.

To synchronize both s/w and h/w states, invoke cqe disable after
sdhci-reset.

Change-Id: I0c1cca005d7c92dd02d66b0aac4d9a688493b12f
Signed-off-by: default avatarSarthak Garg <sartgarg@codeaurora.org>
parent ced8fc1a
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -4064,6 +4064,8 @@ static void sdhci_msm_reset(struct sdhci_host *host, u8 mask)
	}

	sdhci_reset(host, mask);
	if (host->mmc->caps2 & MMC_CAP2_CQE)
		cqhci_suspend(host->mmc);
}

/*