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:
Kuogee Hsieh 2012-12-21 14:27:04 -08:00 committed by Stephen Boyd
parent 946b76460c
commit e155e1826f

View file

@ -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);