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:
@@ -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),
|
||||
|
Reference in New Issue
Block a user