]> git.hungrycats.org Git - linux/commit
drm/i915/dp: Add helper to compute num pipes required
authorAnkit Nautiyal <ankit.k.nautiyal@intel.com>
Thu, 26 Sep 2024 13:43:22 +0000 (19:13 +0530)
committerAnkit Nautiyal <ankit.k.nautiyal@intel.com>
Mon, 30 Sep 2024 14:06:45 +0000 (19:36 +0530)
commit84b2b38451a34e86f25bbfc5c5d50aab46713cd5
treee47ff32decad3313a60cd6a4b956c4ef33a48a41
parenta47df3335a223c096b946b7934db12f9ac9948a4
drm/i915/dp: Add helper to compute num pipes required

Add a helper to compute the number of pipes required.
This will depend on whether the joiner is required or is forced through
the debugfs. If no joiner is required the helper returns 1.

v2:
-Return 1 if no joiner is required. (Ville)
-Change the suffix from joined_pipes to num_pipes. (Ville)
-Use number of pipes while calculating joined_pipe masks and
max_dotclk. (Ville)
v3: Simplify and rename the helper to intel_dp_num_joined_pipes(). Ville
v4: Remove redundant 'fallthrough' statement. (Ville)

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