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

Commit 632aef1e authored by Asutosh Das's avatar Asutosh Das Committed by Veerabhadrarao Badiganti
Browse files

mmc: block: Don't unhalt if switch to CQ mode fails



There's no reason to unhalt if switching to CQ mode fails.
Since card is not in CQ mode, let the controller be halted.
The caller will handle this error.

CRs-fixed: 2241401
Change-Id: I307753ad66d291168a55f760565cc141d7c83c31
Signed-off-by: default avatarAsutosh Das <asutoshd@codeaurora.org>
parent 378dc16e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -3994,6 +3994,7 @@ static inline int mmc_blk_cmdq_part_switch(struct mmc_card *card,
		pr_err("%s: %s: mmc_blk_cmdq_switch failed: %d\n",
			mmc_hostname(host), __func__,  err);
		ret = err;
		goto out;
	}
cmdq_unhalt:
	err = mmc_cmdq_halt(host, false);