]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Fix passive dongle mistaken as active dongle in EDID emulation
authorSamson Tam <Samson.Tam@amd.com>
Thu, 13 Aug 2020 14:50:21 +0000 (10:50 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 26 Aug 2020 19:27:51 +0000 (15:27 -0400)
commit5e7b6adc5beaae6522b73ec5477323d4733f75d8
treec8d12cac1890404f06dec94994f090417252ab22
parent5de183156907f250e3a38c3d80dc1f14086629f6
drm/amd/display: Fix passive dongle mistaken as active dongle in EDID emulation

[Why]
dongle_type is set during dongle connection but for passive dongles,
dongle_type is not set. If user starts with an active dongle and
then switches to a passive dongle, it will still report as an active
dongle. Trying to emulate the wrong connecter type results in display
not lighting up.

[How]
Set dpcd_caps.dongle_type for passive dongles in detect_dp().

Signed-off-by: Samson Tam <Samson.Tam@amd.com>
Reviewed-by: Joshua Aberback <Joshua.Aberback@amd.com>
Acked-by: Eryk Brol <eryk.brol@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link.c