]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: fix dp kvm can't light up
authorTianci.Yin <tianci.yin@amd.com>
Tue, 8 Mar 2022 05:45:45 +0000 (13:45 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 Mar 2022 18:25:16 +0000 (14:25 -0400)
commit5a99e8c14e66db27276e427e64c6e00ed04909ab
treef3f78f18ac9a45727676709ce369efe7bdd38c0c
parent05b6a7f859d9f24fe3f267eeaeef745f9ea6330f
drm/amd/display: fix dp kvm can't light up

[why]
The DP KVM failed to light up, since the lttpr_mode is not reset to
default value when failed to read LTTPR capabilities, and the
variable max_link_rate retains a initial value zero, this cause variable
link_rate be assigned to an error value zero, consquently pixel_clock
get wrong value zero, and kvm can't light up.

[how]
Reset lttpr_mode to default value when failed to read LTTPR
capabilities, so that the link_rate fallbacks to the minimum rate that
supported by link encoder and sink.

Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Tianci.Yin <tianci.yin@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c