mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
msm_fb: display: force mdp clock off at suspend
At suspend, turn off mdp related clocks off if clocks are not turned off by vsync disable request. Change-Id: I0949b00b9ee0aee05b9b553ac7318b647052d94d Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 780557dc178fc5511f4c03b4840791d27499a5f6)
This commit is contained in:
parent
fc72ce5619
commit
3288119c79
1 changed files with 11 additions and 5 deletions
|
@ -1046,6 +1046,7 @@ int mdp4_dsi_cmd_off(struct platform_device *pdev)
|
|||
struct vsync_update *vp;
|
||||
int undx;
|
||||
int need_wait, cnt;
|
||||
unsigned long flags;
|
||||
|
||||
pr_debug("%s+: pid=%d\n", __func__, current->pid);
|
||||
|
||||
|
@ -1080,11 +1081,16 @@ int mdp4_dsi_cmd_off(struct platform_device *pdev)
|
|||
}
|
||||
}
|
||||
|
||||
/* message for system suspnded */
|
||||
if (cnt > 10)
|
||||
pr_err("%s:Error, mdp clocks NOT off\n", __func__);
|
||||
else
|
||||
pr_debug("%s: mdp clocks off at cnt=%d\n", __func__, cnt);
|
||||
if (cnt > 10) {
|
||||
spin_lock_irqsave(&vctrl->spin_lock, flags);
|
||||
vctrl->clk_control = 0;
|
||||
vctrl->clk_enabled = 0;
|
||||
vctrl->expire_tick = 0;
|
||||
spin_unlock_irqrestore(&vctrl->spin_lock, flags);
|
||||
mipi_dsi_clk_cfg(0);
|
||||
mdp_clk_ctrl(0);
|
||||
pr_err("%s: Error, SET_CLK_OFF by force\n", __func__);
|
||||
}
|
||||
|
||||
/* sanity check, free pipes besides base layer */
|
||||
mdp4_overlay_unset_mixer(pipe->mixer_num);
|
||||
|
|
Loading…
Reference in a new issue