]> git.baikalelectronics.ru Git - kernel.git/commit
drm/dp/mst: Read the extended DPCD capabilities during system resume
authorImre Deak <imre.deak@intel.com>
Tue, 14 Jun 2022 09:45:37 +0000 (12:45 +0300)
committerImre Deak <imre.deak@intel.com>
Thu, 16 Jun 2022 18:41:02 +0000 (21:41 +0300)
commit0f1939f5a0d4a3685d485fbf6e445fa202dfbdf8
treebbc5907ad4bdba747aec2fba49260e1894af9054
parentfe84570881ec11632a527531ae2616b7a872493b
drm/dp/mst: Read the extended DPCD capabilities during system resume

The WD22TB4 Thunderbolt dock at least will revert its DP_MAX_LINK_RATE
from HBR3 to HBR2 after system suspend/resume if the DP_DP13_DPCD_REV
registers are not read subsequently also as required.

Fix this by reading DP_DP13_DPCD_REV registers as well, matching what is
done during connector detection. While at it also fix up the same call
in drm_dp_mst_dump_topology().

Cc: Lyude Paul <lyude@redhat.com>
Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/5292
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Cc: <stable@vger.kernel.org> # v5.14+
Reviewed-by: Lyude Paul <lyude@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220614094537.885472-1-imre.deak@intel.com
drivers/gpu/drm/display/drm_dp_mst_topology.c