Skip to contentSkip to conversation

drm/connector: Add doc for content_protection tri-state

PATCH In review Harry Wentland 2 participants 2 messages May 17, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/connector: Add doc for content_protection tri-state

It was there all along in the patch description when this change was introduced but it would be helpful to have the same documented in the code.

Cc Sean Paul <[email protected]>
Cc Sean Paul <[email protected]>
Cc Bhawanpreet Lakha <[email protected]>
---
 drivers/gpu/drm/drm_connector.c | 9 +++++++++
 1 file changed, 9 insertions(+)
drivers/gpu/drm/drm_connector.c +9 -0
index b34c3d38bf15..c53e51ad3b59 100644
@@ -1519,6 +1519,15 @@ EXPORT_SYMBOL(drm_connector_attach_scaling_mode_property);
  * Content Protection is intentionally vague to allow for different underlying
  * technologies, however it is most implemented by HDCP.
  *
+ * The property is a tri-state with the following values:
+ * - OFF: Self explanatory, no content protection
+ * - DESIRED: Userspace requests that the driver enable protection
+ * - ENABLED: Once the driver has authenticated the link, it sets this value
+ *
+ * The driver is responsible for downgrading ENABLED to DESIRED if the link becomes
+ * unprotected. The driver should also maintain the desiredness of protection
+ * across hotplug/dpms/suspend.
+ *
  * The content protection will be set to &drm_connector_state.content_protection
  *
  * Returns:
Signature · 6 lines
2.21.0

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Reviewed-by on v1 1/1
#1 lore raw
Quoted 9 lines · Harry Wentland

It was there all along in the patch description when this change was introduced but it would be helpful to have the same documented in the code.

Cc Sean Paul <[email protected]>
Cc Sean Paul <[email protected]>
Cc Bhawanpreet Lakha <[email protected]>
Quoted 25 lines
---
 drivers/gpu/drm/drm_connector.c | 9 +++++++++
 1 file changed, 9 insertions(+)
drivers/gpu/drm/drm_connector.c +9 -1
index b34c3d38bf15..c53e51ad3b59 100644
@@ -1519,6 +1519,15 @@ EXPORT_SYMBOL(drm_connector_attach_scaling_mode_property);
  * Content Protection is intentionally vague to allow for different underlying
  * technologies, however it is most implemented by HDCP.
  *
+ * The property is a tri-state with the following values:
+ * - OFF: Self explanatory, no content protection
+ * - DESIRED: Userspace requests that the driver enable protection
+ * - ENABLED: Once the driver has authenticated the link, it sets this value
+ *
+ * The driver is responsible for downgrading ENABLED to DESIRED if the link becomes
+ * unprotected. The driver should also maintain the desiredness of protection
+ * across hotplug/dpms/suspend.
+ *
  * The content protection will be set to &drm_connector_state.content_protection
  *
  * Returns:
--
Quoted 2 lines

2.21.0

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel