OSDN Git Service

mmc: block: Don't unhalt if switch to CQ mode fails
authorAsutosh Das <asutoshd@codeaurora.org>
Tue, 15 May 2018 04:44:00 +0000 (10:14 +0530)
committerGerrit - the friendly Code Review server <code-review@localhost>
Thu, 21 Jun 2018 08:55:42 +0000 (01:55 -0700)
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: Asutosh Das <asutoshd@codeaurora.org>
drivers/mmc/card/block.c

index 13e0df6..0747f22 100644 (file)
@@ -3995,6 +3995,7 @@ cmdq_switch:
                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);