]> asedeno.scripts.mit.edu Git - linux.git/commit
drm/amd/display: Handle branch device with DFP count = 0 case.
authorHugo Hu <hugo.hu@amd.com>
Mon, 25 Feb 2019 11:16:52 +0000 (19:16 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 28 Mar 2019 03:41:32 +0000 (22:41 -0500)
commita504ad265dec380d7314b8e02984c8d294ab0bd5
tree00862914b9452f134581db4928085c2473e8c875
parent3ae42acde349e0f983945da5901282de9352d929
drm/amd/display: Handle branch device with DFP count = 0 case.

[Why]
When you have a SST branch device the driver, Even no sink device connected,
it also send HPD with a valid EDID. Driver will config it to DP sink.
Therefore, there're two displays in display setting.

DPCD 0x05, DFP_PRESENT = 1 (branch device),
DFP_TYPE = 00 (Display Port)

[How]
Driver determine DPCD 0x05 DFP_PRESENT = 1(branch) as an active dongle
And check DFP count.

Signed-off-by: Hugo Hu <hugo.hu@amd.com>
Reviewed-by: Hugo Hu <Hugo.Hu@amd.com>
Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link.c
drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c
drivers/gpu/drm/amd/display/dc/dc.h