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

Commit f3d8a0d8 authored by Konstantin Dorfman's avatar Konstantin Dorfman
Browse files

mmc: core: ignore cmdq halt failure when no change is needed



During system suspend CQE halted by queue suspend even before mmc host
suspend. When mmc host suspend calls halt helper, CQE is already halted.

This change ignores error value of halt helper.

Change-Id: I2d1456333f1d04f0e7a77485443b80a0ccaa3b4e
Signed-off-by: default avatarKonstantin Dorfman <kdorfman@codeaurora.org>
parent 465357be
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -1208,8 +1208,12 @@ int mmc_cmdq_halt(struct mmc_host *host, bool halt)
	int err = 0;

	if ((halt && mmc_host_halt(host)) ||
	    (!halt && !mmc_host_halt(host)))
		return -EINVAL;
			(!halt && !mmc_host_halt(host))) {
		pr_debug("%s: %s: CQE is already %s\n", mmc_hostname(host),
				__func__, halt ? "halted" : "un-halted");
		return 0;
	}

	mmc_host_clk_hold(host);
	if (host->cmdq_ops->halt) {
		err = host->cmdq_ops->halt(host, halt);