Commit eb11eabc authored by Jani Nikula's avatar Jani Nikula

drm/i915: move and group hdcp under display.hdcp

Move display hdcp related members under drm_i915_private display
sub-struct.
Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
Reviewed-by: default avatarLucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: default avatarArun R Murthy <arun.r.murthy@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/1083f5a58cce1507bd19bf7f98bf85e9351b741e.1661779055.git.jani.nikula@intel.com
parent 917bda9a
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
struct drm_i915_private; struct drm_i915_private;
struct i915_audio_component; struct i915_audio_component;
struct i915_hdcp_comp_master;
struct intel_atomic_state; struct intel_atomic_state;
struct intel_audio_funcs; struct intel_audio_funcs;
struct intel_cdclk_funcs; struct intel_cdclk_funcs;
...@@ -231,6 +232,14 @@ struct intel_display { ...@@ -231,6 +232,14 @@ struct intel_display {
wait_queue_head_t wait_queue; wait_queue_head_t wait_queue;
} gmbus; } gmbus;
struct {
struct i915_hdcp_comp_master *master;
bool comp_added;
/* Mutex to protect the above hdcp component related values. */
struct mutex comp_mutex;
} hdcp;
struct { struct {
u32 mmio_base; u32 mmio_base;
......
This diff is collapsed.
...@@ -338,7 +338,7 @@ static int i915_driver_early_probe(struct drm_i915_private *dev_priv) ...@@ -338,7 +338,7 @@ static int i915_driver_early_probe(struct drm_i915_private *dev_priv)
mutex_init(&dev_priv->display.audio.mutex); mutex_init(&dev_priv->display.audio.mutex);
mutex_init(&dev_priv->display.wm.wm_mutex); mutex_init(&dev_priv->display.wm.wm_mutex);
mutex_init(&dev_priv->display.pps.mutex); mutex_init(&dev_priv->display.pps.mutex);
mutex_init(&dev_priv->hdcp_comp_mutex); mutex_init(&dev_priv->display.hdcp.comp_mutex);
i915_memcpy_init_early(dev_priv); i915_memcpy_init_early(dev_priv);
intel_runtime_pm_init_early(&dev_priv->runtime_pm); intel_runtime_pm_init_early(&dev_priv->runtime_pm);
......
...@@ -538,12 +538,6 @@ struct drm_i915_private { ...@@ -538,12 +538,6 @@ struct drm_i915_private {
struct i915_drm_clients clients; struct i915_drm_clients clients;
struct i915_hdcp_comp_master *hdcp_master;
bool hdcp_comp_added;
/* Mutex to protect the above hdcp component related values. */
struct mutex hdcp_comp_mutex;
/* The TTM device structure. */ /* The TTM device structure. */
struct ttm_device bdev; struct ttm_device bdev;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment