drm/amd/display: check dpcd read status of DP_DOWNSTREAM_PORT_0
authorjinlong zhang <jinlong.zhang@amd.com>
Wed, 17 Jun 2020 15:20:56 +0000 (23:20 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 2 Jul 2020 16:02:53 +0000 (12:02 -0400)
commit5aedc7bc40708fe84695e1584b82c081785fd5a7
tree6772c036fb0f58b6c21ea65bf00ccd59317c5ea8
parent2705297c1a5fa4a5460a119fd103e08efc39db95
drm/amd/display: check dpcd read status of DP_DOWNSTREAM_PORT_0

[Why]
For special DP convert VGA dongle, core_link_read_dpcd for
DP_DOWNSTREAM_PORT_0 always return fail, then dongle_type will be set to
DISPLAY_DONGLE_NONE, which will cause desktop resolution abnormal.

[How]
If dpcd for DP_DOWNSTREAM_PORT_0 read fail, skip set dongle_type =
DISPLAY_DONGLE_NONE.

Signed-off-by: jinlong zhang <jinlong.zhang@amd.com>
Reviewed-by: Wenjing Liu <Wenjing.Liu@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_dp.c