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

Commit aa3b72e3 authored by Ram Prakash Gupta's avatar Ram Prakash Gupta
Browse files

mmc: core: Disable cqe during runtime suspend



During mmc runtime suspend resume, request timeout is observed.
This is because command queue engine is not disabling, so to fix
this disabling command queue during runtime suspend resume.

Change-Id: I666bb4f261d0740d7aa39d0722c305be2e1246ad
Signed-off-by: default avatarRam Prakash Gupta <rampraka@codeaurora.org>
parent 1a6164c4
Loading
Loading
Loading
Loading
+5 −0
Original line number Original line Diff line number Diff line
@@ -2062,6 +2062,11 @@ static int _mmc_suspend(struct mmc_host *host, bool is_suspend)
	if (mmc_card_suspended(host->card))
	if (mmc_card_suspended(host->card))
		goto out;
		goto out;


	if (host->cqe_enabled) {
		host->cqe_ops->cqe_disable(host);
		host->cqe_enabled = false;
	}

	if (mmc_card_doing_bkops(host->card)) {
	if (mmc_card_doing_bkops(host->card)) {
		err = mmc_stop_bkops(host->card);
		err = mmc_stop_bkops(host->card);
		if (err)
		if (err)