drm/msm/sde: Set flush bit for slave interface
Setting flush bit for slave interface should be
skipped only for pp-split cases. For all other
cases, flush bits should be set for master and
slave interfaces when there is a change in interface
params. Add support to handle the same.
Change-Id: I8556e01f4758c39d12291ebabcd1351b2681d407
Signed-off-by: Krishna Manikandan <mkrishn@codeaurora.org>
diff --git a/drivers/gpu/drm/msm/sde/sde_encoder_phys_vid.c b/drivers/gpu/drm/msm/sde/sde_encoder_phys_vid.c
index 74bf518..455e25c 100644
--- a/drivers/gpu/drm/msm/sde/sde_encoder_phys_vid.c
+++ b/drivers/gpu/drm/msm/sde/sde_encoder_phys_vid.c
@@ -744,11 +744,10 @@
sde_encoder_phys_vid_setup_timing_engine(phys_enc);
/*
- * For single flush cases (dual-ctl or pp-split), skip setting the
- * flush bit for the slave intf, since both intfs use same ctl
- * and HW will only flush the master.
+ * For pp-split, skip setting the flush bit for the slave intf,
+ * since both intfs use same ctl and HW will only flush the master.
*/
- if (sde_encoder_phys_vid_needs_single_flush(phys_enc) &&
+ if (_sde_encoder_phys_is_ppsplit(phys_enc) &&
!sde_encoder_phys_vid_is_master(phys_enc))
goto skip_flush;