[v6 11/12] drm/i915/lspcon: Skip infoframe enable for MST

Uma Shankar uma.shankar at intel.com
Wed Jun 17 22:11:58 UTC 2020


MST display doesn't require infoframe, skip the same.

Signed-off-by: Uma Shankar <uma.shankar at intel.com>
---
 drivers/gpu/drm/i915/display/intel_lspcon.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/gpu/drm/i915/display/intel_lspcon.c b/drivers/gpu/drm/i915/display/intel_lspcon.c
index 300992ef92b8..d168ae106767 100644
--- a/drivers/gpu/drm/i915/display/intel_lspcon.c
+++ b/drivers/gpu/drm/i915/display/intel_lspcon.c
@@ -626,6 +626,11 @@ u32 lspcon_infoframes_enabled(struct intel_encoder *encoder,
 	u32 val = 0;
 	u32 mask, tmp;
 
+	if (intel_crtc_has_type(pipe_config, INTEL_OUTPUT_DP_MST)) {
+		DRM_ERROR("Infoframe not supported for MST");
+		return 0;
+	}
+
 	if (lspcon->vendor == LSPCON_VENDOR_MCA)
 		infoframes_enabled = _lspcon_read_avi_infoframe_enabled_mca(&intel_dp->aux);
 	else
-- 
2.22.0



More information about the Intel-gfx-trybot mailing list