From 5e4c130f36834415e5775c1e4b53147c6cd07a99 Mon Sep 17 00:00:00 2001 From: Yashwanth Date: Mon, 16 May 2022 11:52:13 +0530 Subject: [PATCH] disp: msm: sde: update uidle ctl register only for master encoder In case of dual dsi usecase, since both the encoders use the same CTL path, this change ensures that uidle ctl settings are updated only by the master encoder. Change-Id: I7bd75ae0195d34f0c1810403fa5e390fbaa64ed0 Signed-off-by: Yashwanth --- msm/sde/sde_encoder.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/msm/sde/sde_encoder.c b/msm/sde/sde_encoder.c index d27b125bf01f..3eeb518c1a63 100644 --- a/msm/sde/sde_encoder.c +++ b/msm/sde/sde_encoder.c @@ -141,7 +141,10 @@ void sde_encoder_uidle_enable(struct drm_encoder *drm_enc, bool enable) for (i = 0; i < sde_enc->num_phys_encs; i++) { struct sde_encoder_phys *phys = sde_enc->phys_encs[i]; - if (phys && phys->hw_ctl && phys->hw_ctl->ops.uidle_enable) { + if (phys && phys->hw_ctl && phys->hw_ctl->ops.uidle_enable && + phys->split_role != ENC_ROLE_SLAVE) { + if (enable) + SDE_EVT32(DRMID(drm_enc), enable); phys->hw_ctl->ops.uidle_enable(phys->hw_ctl, enable); } }