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

Commit 96257c55 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: Add clock hold and release pair for cmdq_ops"

parents 8c0d7dc0 e317c702
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1320,8 +1320,10 @@ static int mmc_select_cmdq(struct mmc_card *card)
		goto out;

	mmc_card_set_cmdq(card);
	mmc_host_clk_hold(card->host);
	ret = host->cmdq_ops->enable(card->host);
	if (ret) {
		mmc_host_clk_release(card->host);
		pr_err("%s: failed (%d) enabling CMDQ on host\n",
			mmc_hostname(host), ret);
		mmc_card_clr_cmdq(card);
@@ -1331,6 +1333,7 @@ static int mmc_select_cmdq(struct mmc_card *card)
			goto out;
	}

	mmc_host_clk_release(card->host);
	pr_info("%s: CMDQ enabled on card\n", mmc_hostname(host));
out:
	return ret;