]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/i915/hdcp: pass the context to the HDCP GSC message interface
authorJani Nikula <jani.nikula@intel.com>
Thu, 24 Apr 2025 20:01:38 +0000 (23:01 +0300)
committerJani Nikula <jani.nikula@intel.com>
Fri, 2 May 2025 10:26:19 +0000 (13:26 +0300)
commit3ac2a0b9bbbb8138971c6df6086719ebb4bdb7ae
tree9f102322f4136c4113626fc8600bb67a47d07fd7
parent8cae787fab1f60d129377e147e42c4678002ff65
drm/i915/hdcp: pass the context to the HDCP GSC message interface

The opaque HDCP GSC context nicely abstracts the differences between
drivers. Pass that instead of struct drm_i915_private or struct
xe_device to intel_hdcp_gsc_msg_send(). We can store the driver specific
data in the context.

This lets us drop the dependency on i915_drv.h from
intel_hdcp_gsc_message.c.

Cc: Suraj Kandpal <suraj.kandpal@intel.com>
Reviewed-by: Suraj Kandpal <suraj.kandpal@intel.com>
Link: https://lore.kernel.org/r/df1653212f9014e717701b017e78e0017884b870.1745524803.git.jani.nikula@intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/display/intel_hdcp_gsc.c
drivers/gpu/drm/i915/display/intel_hdcp_gsc.h
drivers/gpu/drm/i915/display/intel_hdcp_gsc_message.c
drivers/gpu/drm/xe/display/xe_hdcp_gsc.c