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

Commit e317c702 authored by Talel Shenhar's avatar Talel Shenhar
Browse files

mmc: core: Add clock hold and release pair for cmdq_ops



mmc_host_clk_hold/release pair should be added for relevant
cmdq_ops. Since it enables host->clock which is needed
for register access as well (apart from
MCLK).

Change-Id: I6d9d15a421225c5b4179cb19e467a17d01ad176f
Signed-off-by: default avatarRitesh Harjani <riteshh@codeaurora.org>
Signed-off-by: default avatarTalel Shenhar <tatias@codeaurora.org>
parent 8808aef7
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;