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

Commit 9f6235da authored by Sahitya Tummala's avatar Sahitya Tummala
Browse files

mmc: card: Fix broken clock gating



The commit '77dacd' misses to add mmc_host_clk_release() in the
completion path of a CQ request i.e., in mmc_blk_cmdq_complete_rq().
Hence, the reference counter of clocks (host->clk_requests) never
becomes 0, preventing the clocks from gating. However, the clocks
are still turned off through other power management features such as
runtime/system suspend.

Change-Id: I0032861b1e5218bdf3c5bed664869c708ce50148
Signed-off-by: default avatarSahitya Tummala <stummala@codeaurora.org>
parent 73135edf
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -3209,6 +3209,7 @@ out:

	mmc_cmdq_clk_scaling_stop_busy(host, true, is_dcmd);
	if (!test_bit(CMDQ_STATE_ERR, &ctx_info->curr_state)) {
		mmc_host_clk_release(host);
		wake_up(&ctx_info->wait);
		mmc_put_card(host->card);
	}