drm/dp_mst: Factor out a helper to check the atomic state of a topology manager
authorImre Deak <imre.deak@intel.com>
Tue, 24 Oct 2023 01:08:59 +0000 (04:08 +0300)
committerImre Deak <imre.deak@intel.com>
Wed, 8 Nov 2023 15:22:07 +0000 (17:22 +0200)
commit1cd0a5ea427931016c3e95b20dc20f17604937cc
treedf0eb65caca67e3666de3f9694bac727d7591cc5
parent9dcf67deeab6fbc4984175278b1b2c59881dca52
drm/dp_mst: Factor out a helper to check the atomic state of a topology manager

Factor out a helper to check the atomic state for one MST topology
manager, returning the MST port where the BW limit check has failed.
This will be used in a follow-up patch by the i915 driver to improve the
BW sharing between MST streams.

Cc: Lyude Paul <lyude@redhat.com>
Cc: dri-devel@lists.freedesktop.org
Reviewed-by: Lyude Paul <lyude@redhat.com>
Acked-by: Maxime Ripard <mripard@kernel.org>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20231030155843.2251023-5-imre.deak@intel.com
drivers/gpu/drm/display/drm_dp_mst_topology.c
include/drm/display/drm_dp_mst_helper.h