diff options
| author | Pravin Tamkhane <pravint@codeaurora.org> | 2013-11-27 13:57:22 -0800 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-23 20:23:54 -0700 |
| commit | cdced62b119fdbf5d3629867daeed3a7d3f87eb3 (patch) | |
| tree | 11bdeebf172a8515679bbb82c7bfd64f800cd87c | |
| parent | 05b987fde7f7698c18fa2bf43668d49eca9444c2 (diff) | |
msm: mdss: Make sure MDP clocks are voted for while AD is stabilizing
MDP clocks were not voted for while AD stabilization was in progress,
which could result in unclocked register access in certain use cases.
Make sure MDP clocks are voted for as long as AD is stabilizing.
Change-Id: I5598beee152585a9a9bf9aefd1121f3561dbc0b8
Signed-off-by: Pravin Tamkhane <pravint@codeaurora.org>
| -rw-r--r-- | drivers/video/fbdev/msm/mdss_mdp_pp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/video/fbdev/msm/mdss_mdp_pp.c b/drivers/video/fbdev/msm/mdss_mdp_pp.c index 522f307d9055..9cc001e1da8c 100644 --- a/drivers/video/fbdev/msm/mdss_mdp_pp.c +++ b/drivers/video/fbdev/msm/mdss_mdp_pp.c @@ -4190,6 +4190,7 @@ static void pp_ad_calc_worker(struct work_struct *work) return; } + mdss_mdp_clk_ctrl(MDP_BLOCK_POWER_ON, false); if (PP_AD_STATE_RUN & ad->state) { /* Kick off calculation */ ad->calc_itr--; @@ -4228,6 +4229,7 @@ static void pp_ad_calc_worker(struct work_struct *work) ad->last_str = 0xFFFFFFFF; } } + mdss_mdp_clk_ctrl(MDP_BLOCK_POWER_OFF, false); complete(&ad->comp); if (!ad->calc_itr) { |
