diff mbox series

drm/i915/hdcp: Show connector hdcp capability

Message ID 20210205071044.865-1-anshuman.gupta@intel.com (mailing list archive)
State New, archived
Headers show
Series drm/i915/hdcp: Show connector hdcp capability | expand

Commit Message

Anshuman Gupta Feb. 5, 2021, 7:10 a.m. UTC
Show only connector hdcp capability in i915_display_info
instead of platform and sink.

There are some platforms which don't support HDCP 2.2
yet, those are not HDCP 2.2 capable but those platform
should show up the connector capability in i915_display_info.

Signed-off-by: Anshuman Gupta <anshuman.gupta@intel.com>
---
 drivers/gpu/drm/i915/display/intel_display_debugfs.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/gpu/drm/i915/display/intel_display_debugfs.c b/drivers/gpu/drm/i915/display/intel_display_debugfs.c
index d62b18d5ecd8..8a028f943da5 100644
--- a/drivers/gpu/drm/i915/display/intel_display_debugfs.c
+++ b/drivers/gpu/drm/i915/display/intel_display_debugfs.c
@@ -605,6 +605,7 @@  static void intel_panel_info(struct seq_file *m, struct intel_panel *panel)
 static void intel_hdcp_info(struct seq_file *m,
 			    struct intel_connector *intel_connector)
 {
+	struct intel_digital_port *dig_port = intel_attached_dig_port(intel_connector);
 	bool hdcp_cap, hdcp2_cap;
 
 	if (!intel_connector->hdcp.shim) {
@@ -613,7 +614,8 @@  static void intel_hdcp_info(struct seq_file *m,
 	}
 
 	hdcp_cap = intel_hdcp_capable(intel_connector);
-	hdcp2_cap = intel_hdcp2_capable(intel_connector);
+	/* Sink's capability for HDCP2.2 */
+	intel_connector->hdcp.shim->hdcp_2_2_capable(dig_port, &hdcp2_cap);
 
 	if (hdcp_cap)
 		seq_puts(m, "HDCP1.4 ");