drm/i915/mst: use intel_dp_compute_config_limits() for DP MST
authorJani Nikula <jani.nikula@intel.com>
Wed, 11 Dec 2024 14:43:10 +0000 (16:43 +0200)
committerJani Nikula <jani.nikula@intel.com>
Mon, 16 Dec 2024 14:58:17 +0000 (16:58 +0200)
commit805cc9fef1fa9b07ab76d59ac733b915e0c52e48
tree7979b53ed1ba799ea56b3cea4f2f7647472639e0
parentd483fa58991fab33cf7b29d01d8243343dd0e5ad
drm/i915/mst: use intel_dp_compute_config_limits() for DP MST

There's a lot of duplication between mst_stream_compute_config_limits()
and intel_dp_compute_config_limits(). Adjust the latter to suit the
needs of the former, and use the same function for both. This reduces
duplication and highlights the differences for SST and MST and UHBR.

Remove the kernel-doc for intel_dp_compute_config_link_bpp_limits()
which now becomes static.

Cc: Imre Deak <imre.deak@intel.com>
Reviewed-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241211144310.701895-1-jani.nikula@intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
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