From 030e3f15a7d6fbeeef9c7dabd1ceec3d5459011f Mon Sep 17 00:00:00 2001 From: Veera Sundaram Sankaran Date: Thu, 10 Dec 2020 16:45:57 -0800 Subject: [PATCH] disp: msm: sde: cleanup ctl/intf registers on cmd encoder disable The SDE RM determines the number of displays enabled in cont-splash by checking the INTF_ACTIVE bits in the ctl. The trusted-vm relies on the same cont-splash path during transitions and the stale ctl INTF_ACTIVE on dual display usecases leads to wrong status check. Currently, only video/wb encoders use the phys_encoder disable helper during encoder disable to clear out few ctl/intf registers. Extend it for cmd encoder as well to remove the stale entries. Change-Id: I7f21ef46178ce3943ee85abdf29f7cdef93d7c52 Signed-off-by: Veera Sundaram Sankaran --- msm/sde/sde_encoder_phys_cmd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/msm/sde/sde_encoder_phys_cmd.c b/msm/sde/sde_encoder_phys_cmd.c index b5bdddf332..1c4e43c4bf 100644 --- a/msm/sde/sde_encoder_phys_cmd.c +++ b/msm/sde/sde_encoder_phys_cmd.c @@ -1345,6 +1345,7 @@ static void sde_encoder_phys_cmd_disable(struct sde_encoder_phys *phys_enc) else if (phys_enc->hw_pp->ops.enable_tearcheck) phys_enc->hw_pp->ops.enable_tearcheck(phys_enc->hw_pp, false); + sde_encoder_helper_phys_disable(phys_enc, NULL); } phys_enc->enable_state = SDE_ENC_DISABLED;