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

Commit 40ac66ce authored by Sarthak Garg's avatar Sarthak Garg
Browse files

mmc: core: Set cqe_enabled flag correctly



If cqe_enable wrapper returns error then cqe_enabled flag should be
false.
Set cqe_enabled flag only when there is no error from cqe_enable
wrapper.

Change-Id: I8a35454a7547f67f5836e4f8ddabd1e5910fd48a
Signed-off-by: default avatarSarthak Garg <sartgarg@codeaurora.org>
parent be585d2b
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2707,10 +2707,11 @@ int mmc_resume_bus(struct mmc_host *host)
		}
		if (host->card->ext_csd.cmdq_en && !host->cqe_enabled) {
			err = host->cqe_ops->cqe_enable(host, host->card);
			host->cqe_enabled = true;
			if (err)
				pr_err("%s: %s: cqe enable failed: %d\n",
				       mmc_hostname(host), __func__, err);
			else
				host->cqe_enabled = true;
		}
	}