]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/i915/dp: Use the generic helper to control LTTPR transparent mode
authorAbel Vesa <abel.vesa@linaro.org>
Mon, 3 Feb 2025 10:57:58 +0000 (12:57 +0200)
committerDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Tue, 25 Feb 2025 16:34:14 +0000 (18:34 +0200)
commit6dcc3c5121b72c3633592db761e76083cf7623a3
tree2cac0973648a40d84a76e78ee24b53b62b4c1cc5
parent226a0baf9098841ceb92ab7804a07426540663c7
drm/i915/dp: Use the generic helper to control LTTPR transparent mode

LTTPRs operating modes are defined by the DisplayPort standard and the
generic framework now provides a helper to switch between them, which
is handling the explicit disabling of non-transparent mode and its
disable->enable sequence mentioned in the DP Standard v2.0 section
3.6.6.1.

So use the new drm generic helper instead as it makes the code a bit
cleaner. Since the driver specific implementation holds the
lttrp_common_caps, if the call to the drm generic helper fails, the
lttrp_common_caps need to be updated as the helper has already rolled
back to transparent mode.

Acked-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Abel Vesa <abel.vesa@linaro.org>
Reviewed-by: Suraj Kandpal <suraj.kandpal@intel.com>
Acked-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250203-drm-dp-msm-add-lttpr-transparent-mode-set-v5-3-c865d0e56d6e@linaro.org
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
drivers/gpu/drm/i915/display/intel_dp_link_training.c