]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/i915/display: Refactor enable_joiner_pipes
authorAnkit Nautiyal <ankit.k.nautiyal@intel.com>
Mon, 30 Sep 2024 16:35:40 +0000 (22:05 +0530)
committerAnkit Nautiyal <ankit.k.nautiyal@intel.com>
Tue, 1 Oct 2024 09:04:55 +0000 (14:34 +0530)
commitf9ee6b5748e6ee09d135c588832a5022cadc8da7
tree8d1fc0f8d1d438c27ade177435ba85d2224558d5
parent8c2b586095fa390f862dbca3b773246684d8f35f
drm/i915/display: Refactor enable_joiner_pipes

Pass the current pipe into enabled_joiner_pipes(), and let it figure out
the proper bitmasks for us. Since the enabled_joiner_pipes now gets the
primary and secondary pipes wrt a given pipe, the helpers
to get primary pipe and secondary pipes are no longer required.

v2:
-Simplify helper get_joiner_primary_pipes. (Ville)
-Nuke get_joiner_secondary_pipes. (Ville)
-Add more drm_WARNs final primary/secondary pipes. (Ville)
v3: Drop ultrajoiner stuff and add it in subsequent patches. (Ville)
v4:
-Replace input variable name primary_pipes to primary_pipe for
enabled_joiner_pipes()
-Avoid get_joiner_primary_pipe and use primary_pipes set by
enabled_joiner_pipes(). (Ville)

Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Suggested-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240930163549.416410-5-ankit.k.nautiyal@intel.com
drivers/gpu/drm/i915/display/intel_display.c