msm_fb: display: empty pending queue during suspend for wfd

Add the logic for wfd writeback interface. It already presents on
other display interfaces.

Change-Id: I389be77ec18041e260d0e71940586e86f1841ff8
Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org>
Signed-off-by: Sudhir Sharma <sudsha@codeaurora.org>
(cherry picked from commit 3df55288659cfa826e9ad89cb38a8b722b2ae20f)
This commit is contained in:
Huaibin Yang 2012-11-02 17:30:46 -07:00 committed by Stephen Boyd
parent d366a8bb2c
commit 86f43ec47d

View file

@ -175,6 +175,8 @@ int mdp4_overlay_writeback_off(struct platform_device *pdev)
struct vsycn_ctrl *vctrl;
struct mdp4_overlay_pipe *pipe;
int ret = 0;
int undx;
struct vsync_update *vp;
pr_debug("%s+:\n", __func__);
@ -193,6 +195,16 @@ int mdp4_overlay_writeback_off(struct platform_device *pdev)
mdp4_overlay_pipe_free(pipe);
vctrl->base_pipe = NULL;
undx = vctrl->update_ndx;
vp = &vctrl->vlist[undx];
if (vp->update_cnt) {
/*
* pipe's iommu will be freed at next overlay play
* and iommu_drop statistic will be increased by one
*/
vp->update_cnt = 0; /* empty queue */
}
ret = panel_next_off(pdev);
mdp_clk_ctrl(1);