From 66d6acdc52c453248b5df0c5b125c20ae04d9522 Mon Sep 17 00:00:00 2001 From: Govinda Rao K S Date: Tue, 28 Nov 2023 01:06:47 +0100 Subject: [PATCH] disp: msm: sde: shorter idle-pc duration in doze mode Currently aggresive idle-pc entry is only enabled in case of doze-suspend mode. Extend the support to doze mode as well. --- techpack/display/msm/sde/sde_encoder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/techpack/display/msm/sde/sde_encoder.c b/techpack/display/msm/sde/sde_encoder.c index 50cd23296..8331f4c49 100644 --- a/techpack/display/msm/sde/sde_encoder.c +++ b/techpack/display/msm/sde/sde_encoder.c @@ -1684,7 +1684,7 @@ static void _sde_encoder_rc_restart_delayed(struct sde_encoder_virt *sde_enc, else lp = SDE_MODE_DPMS_ON; - if (lp == SDE_MODE_DPMS_LP2) + if ((lp == SDE_MODE_DPMS_LP1) || (lp == SDE_MODE_DPMS_LP2)) idle_pc_duration = IDLE_SHORT_TIMEOUT; else idle_pc_duration = IDLE_POWERCOLLAPSE_DURATION;