OSDN Git Service

mmc: card: Fix broken clock gating
authorSahitya Tummala <stummala@codeaurora.org>
Thu, 3 Mar 2016 09:37:24 +0000 (15:07 +0530)
committerSubhash Jadavani <subhashj@codeaurora.org>
Tue, 31 May 2016 22:28:14 +0000 (15:28 -0700)
commita1202f10d990ac8d3be7471f4c415f2761a1e941
treef647e467f12c45904e2a2c2f9f7d555965d135e9
parent5c8d7435461c642e7d807e474bf11a6de1e9c052
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: Sahitya Tummala <stummala@codeaurora.org>
drivers/mmc/card/block.c