drm/i915/dp: Initialize the link parameters during HW readout
authorImre Deak <imre.deak@intel.com>
Mon, 22 Jul 2024 16:54:54 +0000 (19:54 +0300)
committerImre Deak <imre.deak@intel.com>
Wed, 31 Jul 2024 15:45:59 +0000 (18:45 +0300)
commita3f91f405aa7c54d0856c1b8698e4ff05ae7d439
treeaeda8ce104049135961d65a9f3985f14a2488297
parenta64d5fe490cd92d74b1cf46da63164cefcc61a58
drm/i915/dp: Initialize the link parameters during HW readout

Initialize the DP link parameters during HW readout. These need to be
up-to-date at least for the MST topology probing, which depends on the
link rate and lane count programmed in DPCD. A follow-up patch will
program the DPCD values to reflect the maximum link parameters before
the first MST topology probing, but should do so only if the link is
disabled (link_trained==false).

Reviewed-by: Suraj Kandpal <suraj.kandpal@intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240722165503.2084999-6-imre.deak@intel.com
drivers/gpu/drm/i915/display/intel_dp.c