]> git.baikalelectronics.ru Git - kernel.git/commit
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 17:12:11 +0000 (13:12 -0400)
commit95f7f8f1eda1cbe3dca9d53b44acf8e06d2dbd92
treedfa0ecd6e9ff038f3159e114fb099656443019e9
parent6f86dabf7c5e6ae9ae7321d7d160ce1ea37beb1b
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