Subject: [PATCH] drm/i915/debug: Allow 4:2:0 also modes too

From: Shashank Sharma <[email-masked]>
Date: Mon, 12 Mar 2018 10:54:06 +0530

Signed-off-by: Shashank Sharma <[email-masked]>
---
 drivers/gpu/drm/i915/intel_hdmi.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/intel_hdmi.c b/drivers/gpu/drm/i915/intel_hdmi.c
index f5d7bfb..9bfd988 100644
--- a/drivers/gpu/drm/i915/intel_hdmi.c
+++ b/drivers/gpu/drm/i915/intel_hdmi.c
@@ -1699,12 +1699,13 @@ bool intel_hdmi_compute_config(struct intel_encoder *encoder,
 		clock_12bpc *= 2;
 	}
 
-	if (drm_mode_is_420_only(&connector->display_info, adjusted_mode)) {
+	if (drm_mode_is_420(&connector->display_info, adjusted_mode)) {
 		if (!intel_hdmi_ycbcr420_config(connector, pipe_config,
 						&clock_12bpc, &clock_8bpc)) {
 			DRM_ERROR("Can't support YCBCR420 output\n");
 			return false;
 		}
+		DRM_DEBUG_KMS("Shashank: mode %s is 4:2:0\n", adjusted_mode->name);
 	}
 
 	if (HAS_PCH_SPLIT(dev_priv) && !HAS_DDI(dev_priv))
-- 
2.7.4