disp: msm: sde: wait for lp2 and pm_suspend frame trigger

PM_SUSPEND API adds extra pm_runtime refcount and calls
the device driver for pm_suspend. At this point display
device may not be in power collapse state. This patch
makes sure that crtc_commit thread is idle and triggers
power collapse also.

Change-Id: Ia21d6a6b6fd32caeb9d16fa5cf998b91ef990e01
Signed-off-by: Dhaval Patel <pdhaval@codeaurora.org>
This commit is contained in:
Dhaval Patel
2019-10-01 19:02:51 -07:00
parent 9e60a4854b
commit 96d5b9646d
2 changed files with 50 additions and 18 deletions

View File

@@ -1406,6 +1406,13 @@ static int sde_encoder_phys_cmd_wait_for_tx_complete(
cmd_enc = to_sde_encoder_phys_cmd(phys_enc);
if (!atomic_read(&phys_enc->pending_kickoff_cnt)) {
SDE_EVT32(DRMID(phys_enc->parent),
phys_enc->intf_idx - INTF_0,
phys_enc->enable_state);
return 0;
}
rc = _sde_encoder_phys_cmd_wait_for_idle(phys_enc);
if (rc) {
SDE_EVT32(DRMID(phys_enc->parent),