disp: msm: sde: perform cmd encoder disable only for master

In dual DSI cases sde_encoder_helper_phys_disable needs to be
called only for master encoder.

Change-Id: If2d327a4800914fe365c6877bf7854275a4434ae
Signed-off-by: Raviteja Tamatam <travitej@codeaurora.org>
This commit is contained in:
Raviteja Tamatam
2020-12-28 18:50:25 +05:30
gecommit door Dhaval Patel
bovenliggende 159e5d8123
commit 090b3ad235

Bestand weergeven

@@ -1344,8 +1344,8 @@ 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);
if (sde_encoder_phys_cmd_is_master(phys_enc))
sde_encoder_helper_phys_disable(phys_enc, NULL);
if (phys_enc->hw_intf->ops.reset_counter)
phys_enc->hw_intf->ops.reset_counter(phys_enc->hw_intf);
}