OSDN Git Service

drm/amd/display: Prevent dpcd reads with passive dongles
authorAurabindo Pillai <aurabindo.pillai@amd.com>
Wed, 22 Apr 2020 18:37:33 +0000 (14:37 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 5 May 2020 20:13:57 +0000 (16:13 -0400)
commite6142dd511425cb827b5db869f489eb81f5f994d
tree26a90a317cb409e6d1a630d40713156caa89927c
parent80797dd6f1a525d1160c463d6a9f9d29af182cbb
drm/amd/display: Prevent dpcd reads with passive dongles

[why]
During hotplug, a DP port may be connected to the sink through
passive adapter which does not support DPCD reads. Issuing reads
without checking for this condition will result in errors

[how]
Ensure the link is in aux_mode before initiating operation that result
in a DPCD read.

Signed-off-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Reviewed-by: Harry Wentland <Harry.Wentland@amd.com>
Acked-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c