drm/i915/mst: use the MST mode detected previously
authorJani Nikula <jani.nikula@intel.com>
Tue, 19 Mar 2024 09:12:51 +0000 (11:12 +0200)
committerJani Nikula <jani.nikula@intel.com>
Thu, 21 Mar 2024 06:44:36 +0000 (08:44 +0200)
commit2e9720e9e1ea2030322fdaab1c9f3295ee99d7c4
tree3b3620b74c796413e36c68829e92a71aa1b8a3bb
parentd4e16b8b0365f3b6f19c45e7c4e6b643b5a67786
drm/i915/mst: use the MST mode detected previously

Drop the duplicate read of DP_MSTM_CAP DPCD register, and the duplicate
logic for choosing MST mode, and store the chosen mode in struct
intel_dp. Rename intel_dp_configure_mst() to intel_dp_mst_configure()
while at it.

v2: Rebase on drm_dp_mst_detect() returning the mode, not bool

Cc: Arun R Murthy <arun.r.murthy@intel.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/93a48df9a77e1138bb28e645fae3f9c79b094cc7.1710839496.git.jani.nikula@intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/display/intel_display_types.h
drivers/gpu/drm/i915/display/intel_dp.c