mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
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:
parent
d366a8bb2c
commit
86f43ec47d
1 changed files with 12 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue