drm/i915/mst: abstract intel_dp_mst_source_support()
authorJani Nikula <jani.nikula@intel.com>
Wed, 6 Oct 2021 10:16:18 +0000 (13:16 +0300)
committerJani Nikula <jani.nikula@intel.com>
Fri, 8 Oct 2021 10:14:25 +0000 (13:14 +0300)
commita94a6d76c9843c3577078ec297caf0d76b6fa12e
treea108a8e7443d094283626d8e9f15ef3a5fce28d3
parentc474420ba412280bc49888c3ce224f0c650c0dcb
drm/i915/mst: abstract intel_dp_mst_source_support()

Add a function for checking source MST support. Drop intel_dp->can_mst
and use intel_dp->mst_mgr.cbs to indicate the same. It's the single
point of truth without additional state variables. In code, "source
support" is also self-documenting as opposed to the vague "can mst".

Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211006101618.22066-1-jani.nikula@intel.com
drivers/gpu/drm/i915/display/intel_display_debugfs.c
drivers/gpu/drm/i915/display/intel_display_types.h
drivers/gpu/drm/i915/display/intel_dp.c
drivers/gpu/drm/i915/display/intel_dp_mst.c
drivers/gpu/drm/i915/display/intel_dp_mst.h