drm/i915: Introduce intel_crtc_joined_pipe_mask()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 4 Apr 2024 21:34:35 +0000 (00:34 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 9 Apr 2024 15:26:47 +0000 (18:26 +0300)
commit2b8ad19d3ed6e2cd0818c2bb34e067728bdc8511
tree8b62c699ca07b130d4e888b59b4ffa339fed0a01
parente43b4f7980f860dbf71aa245e176cbbd4306d44d
drm/i915: Introduce intel_crtc_joined_pipe_mask()

Add a small helper to compute the set of pipes that the current
crtc is using.

And we have at least one trivial place in
intel_ddi_update_active_dpll() where we can use it
immediately, so let's do that.

v2: Use the name 'pipe_crtc' for the per-pipe crtc pointer

Tested-by: Vidya Srinivas <vidya.srinivas@intel.com>
Reviewed-by: Arun R Murthy <arun.r.murthy@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240404213441.17637-12-ville.syrjala@linux.intel.com
drivers/gpu/drm/i915/display/intel_ddi.c
drivers/gpu/drm/i915/display/intel_display.c
drivers/gpu/drm/i915/display/intel_display.h