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

Commit 1934182d authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

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

parents bd940499 f3d8a0d8
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);