OSDN Git Service

drm/amd/display: Refactor dp vendor parsing logic to a function
authorJohn Barberiz <John.Barberiz@amd.com>
Wed, 3 Apr 2019 23:22:55 +0000 (19:22 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 29 Apr 2019 19:59:13 +0000 (14:59 -0500)
commitee13cea962b5ab2d70501f51008c05b394cb322e
tree61e44a6b6e3b556c8ccb8fea4812b6f1b4f481c4
parentcc8d84132a833cc3be469c5d363da769bc69875e
drm/amd/display: Refactor dp vendor parsing logic to a function

Refactor dp vendor parsing int to a new function, and call it before
get_active_converter_info().

Also, add a flag to skip parsing of Display ID 2.0. Some devices fail on
readind DID2, but we shouldn't fail EDID read because of it. Add this
flag to facilitate the logic.

Signed-off-by: John Barberiz <John.Barberiz@amd.com>
Reviewed-by: Aric Cyr <Aric.Cyr@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c
drivers/gpu/drm/amd/display/dc/dc_link.h