]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/i915/ddi: Simplify the port enabling via DDI_BUF_CTL
authorImre Deak <imre.deak@intel.com>
Fri, 14 Feb 2025 14:19:55 +0000 (16:19 +0200)
committerImre Deak <imre.deak@intel.com>
Fri, 14 Feb 2025 19:39:06 +0000 (21:39 +0200)
commitd6e6cb5980ed8ad09cdcf3669056564b29b07585
treea4f3296db1df2ae55adc2a2612d1f2d2069ed699
parentdc2b12b34fb8070b304a8725c4c4060058bc6ab7
drm/i915/ddi: Simplify the port enabling via DDI_BUF_CTL

In the past intel_digital_port::dp.prepare_link_retrain() could be
called directly (vs. from a modeset) to retrain an enabled link. In that
case the port had to be first disabled and then re-enabled. That changed
with commit 2885d283cce5 ("drm/i915/dp: Retrain SST links via a modeset
commit"), after which the only way prepare_link_retrain() can be called
is from a modeset during link training when the port is still disabled.
Simplify things accordingly, assuming the disabled port state.

v2: Don't use drm_i915_private in intel_ddi_prepare_link_retrain(). (Jani)

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