drm/amd/display: handle active dongle port type is DP++ or DP case
authorDale Zhao <dale.zhao@amd.com>
Wed, 10 Jul 2019 09:36:53 +0000 (17:36 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 18 Jul 2019 19:17:20 +0000 (14:17 -0500)
commitb70666934b41c081489d5ff3c5bf017796545d35
tree51066d1f98bbc778e7cef5c8e309b116c4d205c9
parentb791f9dc2de4f9e66aae28451d1284d054542614
drm/amd/display: handle active dongle port type is DP++ or DP case

[Why]:
Some active dongles have DP++ port and DP port at the same time. Current
code doesn't cover DP++ case and processes as default DVI case, in which
audio is disabled. Because of dual mode, DP case is also treat as DVI case
for the other port.

[How]:
According DP 1.4 spec, add DP++ procedure similar with HDMI case. Also
add None dongle type for DP case.

Signed-off-by: Dale Zhao <dale.zhao@amd.com>
Reviewed-by: Wenjing Liu <wenjing.liu@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/include/dpcd_defs.h