]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/i915/dp: Queue a link check after link training is complete
authorImre Deak <imre.deak@intel.com>
Wed, 5 Mar 2025 11:48:20 +0000 (13:48 +0200)
committerImre Deak <imre.deak@intel.com>
Tue, 11 Mar 2025 09:15:27 +0000 (11:15 +0200)
commit29c09cf200f736138707857696d1f6db2db0299b
treea799b990393316b6a93fdc1f94f5851eb831f01b
parent35021b5b15de0c4eceecda9e2dadab2e5e56b7e2
drm/i915/dp: Queue a link check after link training is complete

After link training - both in case of a passing and failing LT result -
a work is scheduled to check the link state. This check should take
place after the link training is completed by disabling the link
training pattern and setting intel_dp::link_trained=true. Atm, the work
is scheduled before these steps, which may result in checking the link
state too early (and thus not retraining the link as expected).

Fix the above by scheduling the link check work after link training is
complete.

v2:
- Add MAX_SEQ_TRAIN_FAILURES instead of open-coding it. (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/20250305114820.3523077-2-imre.deak@intel.com
drivers/gpu/drm/i915/display/intel_dp_link_training.c