Skip to content

Commit

Permalink
drm_bridge: register content protect property
Browse files Browse the repository at this point in the history
Some bridges are able to update HDCP status from userspace requests if
they support HDCP.

HDCP property is the same as other connector properties that need to be
created after the connecter is initialized and before the connector is
registered.

Signed-off-by: Hsin-Yi Wang <hsinyi@chromium.org>
  • Loading branch information
hsinyi527 authored and intel-lab-lkp committed Oct 11, 2022
1 parent 8d87088 commit 2c11ca3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/gpu/drm/drm_bridge_connector.c
Expand Up @@ -7,6 +7,7 @@
#include <linux/module.h>
#include <linux/slab.h>

#include <drm/display/drm_hdcp_helper.h>
#include <drm/drm_atomic_state_helper.h>
#include <drm/drm_bridge.h>
#include <drm/drm_bridge_connector.h>
Expand Down Expand Up @@ -398,6 +399,8 @@ struct drm_connector *drm_bridge_connector_init(struct drm_device *drm,
if (panel_bridge)
drm_panel_bridge_set_orientation(connector, panel_bridge);

drm_connector_attach_content_protection_property(connector, true);

return connector;
}
EXPORT_SYMBOL_GPL(drm_bridge_connector_init);

0 comments on commit 2c11ca3

Please sign in to comment.