diff mbox

[RFC,v1,02/20] drm/hdcp: HDCP SRM blob property for connectors

Message ID 1499848144-8456-3-git-send-email-ramalingam.c@intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

Ramalingam C July 12, 2017, 8:28 a.m. UTC
Standard connector blob property is created for passing HDCP
SRM table from HDCP content player to kernel.

Signed-off-by: Ramalingam C <ramalingam.c@intel.com>
---
 drivers/gpu/drm/drm_connector.c | 5 +++++
 include/drm/drm_mode_config.h   | 5 +++++
 2 files changed, 10 insertions(+)
diff mbox

Patch

diff --git a/drivers/gpu/drm/drm_connector.c b/drivers/gpu/drm/drm_connector.c
index 04f8cf8..41f83a9 100644
--- a/drivers/gpu/drm/drm_connector.c
+++ b/drivers/gpu/drm/drm_connector.c
@@ -819,6 +819,11 @@  int drm_connector_create_standard_properties(struct drm_device *dev)
 		return -ENOMEM;
 	dev->mode_config.hdcp_property = prop;
 
+	prop = drm_property_create(dev, DRM_MODE_PROP_BLOB, "hdcp_srm", 0);
+	if (!prop)
+		return -ENOMEM;
+	dev->mode_config.hdcp_srm_property = prop;
+
 	return 0;
 }
 
diff --git a/include/drm/drm_mode_config.h b/include/drm/drm_mode_config.h
index 0c5bb90..6b06729 100644
--- a/include/drm/drm_mode_config.h
+++ b/include/drm/drm_mode_config.h
@@ -543,6 +543,11 @@  struct drm_mode_config {
 	 */
 	struct drm_property *hdcp_property;
 	/**
+	 * @hdcp_srm_property: Default connector property to feed in the
+	 * SRM Table for HDCP revocation check.
+	 */
+	struct drm_property *hdcp_srm_property;
+	/**
 	 * @plane_type_property: Default plane property to differentiate
 	 * CURSOR, PRIMARY and OVERLAY legacy uses of planes.
 	 */