drm/i915/dp_mst: Update the total link slot count early
authorImre Deak <imre.deak@intel.com>
Fri, 9 May 2025 18:03:31 +0000 (21:03 +0300)
committerImre Deak <imre.deak@intel.com>
Mon, 12 May 2025 12:22:48 +0000 (15:22 +0300)
commitdd697c720fea53d415c4d86f6e128b8bfceb35ce
tree9e5b87969df11e3de3f78d90df58ed4bf1830d4e
parent97ae79d3ad91122991d1ad0032be02fa3e9d918f
drm/i915/dp_mst: Update the total link slot count early

A follow up change will check a selected bpp's BW requirement in
intel_dp_mtp_tu_compute_config(), however that requires the total link
slot count to be up-to-date. The latter in turn depends on the channel
encoding and hence the link rate used, so it can be set after the
link rate used is selected.

This also allows simplifying mst_stream_update_slots(), do that as well,
moving the function definition before its use.

Cc: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Reviewed-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Link: https://lore.kernel.org/r/20250509180340.554867-5-imre.deak@intel.com
drivers/gpu/drm/i915/display/intel_dp_mst.c