mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
msm_fb: display: free borderfill pipe when ref_cnt reach 0
Borderfill pipe need to be kept as baselayer which is not suppose to be freed at suspend. It only be freed when ref_cnt reach 0 by "adb stop". CRs-fixed: 429196 Change-Id: Ibffe7960cc194162d1ba71e8dc8636393938483f Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org>
This commit is contained in:
parent
946b76460c
commit
e155e1826f
1 changed files with 4 additions and 2 deletions
|
@ -1070,8 +1070,10 @@ int mdp4_dsi_cmd_off(struct platform_device *pdev)
|
||||||
/* sanity check, free pipes besides base layer */
|
/* sanity check, free pipes besides base layer */
|
||||||
mdp4_overlay_unset_mixer(pipe->mixer_num);
|
mdp4_overlay_unset_mixer(pipe->mixer_num);
|
||||||
mdp4_mixer_stage_down(pipe, 1);
|
mdp4_mixer_stage_down(pipe, 1);
|
||||||
mdp4_overlay_pipe_free(pipe);
|
if (mfd->ref_cnt == 0) {
|
||||||
vctrl->base_pipe = NULL;
|
mdp4_overlay_pipe_free(pipe);
|
||||||
|
vctrl->base_pipe = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
if (vctrl->vsync_enabled) {
|
if (vctrl->vsync_enabled) {
|
||||||
vsync_irq_disable(INTR_PRIMARY_RDPTR, MDP_PRIM_RDPTR_TERM);
|
vsync_irq_disable(INTR_PRIMARY_RDPTR, MDP_PRIM_RDPTR_TERM);
|
||||||
|
|
Loading…
Reference in a new issue