drm/i915/mst: change where lane_count and port_clock are set
authorJani Nikula <jani.nikula@intel.com>
Wed, 29 Jan 2025 14:46:35 +0000 (16:46 +0200)
committerJani Nikula <jani.nikula@intel.com>
Fri, 31 Jan 2025 07:47:37 +0000 (09:47 +0200)
commitf3ee4d5b4392081427cd9c97432fbdfecfae26f5
treef1e35f0b351ad10fa69c43b5eb03827ab0f6594e
parentbb322c6fa16f97951d75dba46b9ef0cb2cfcb2d5
drm/i915/mst: change where lane_count and port_clock are set

Semantically mst_stream_find_vcpi_slots_for_bpp() does not seem like the
place to make decisions about lane_count and port_clock. Move them to
the callers, and remove the limits parameter that becomes unused.

This leads to slight duplication, but a) this makes further refactoring
easier, and b) also the SST code sets link parameters in different
places for uncompressed and compressed paths.

Reviewed-by: Imre Deak <imre.deak@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/101ce3fc6afff55d966336f3ab72090317750f82.1738161945.git.jani.nikula@intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/display/intel_dp_mst.c