]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Serialize is_dp_sink_present
authorHarry Wentland <harry.wentland@amd.com>
Tue, 29 May 2018 17:11:55 +0000 (13:11 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 13 Jul 2018 19:48:21 +0000 (14:48 -0500)
commitd2fc3081429a733c6b32e91bf99cbf2726b0e8df
treeed5c11e0ab8c214bede4d9f9af03e3dd2cd34102
parent93c4bc5d6a8d1e4d0792b010b46dfd2c723eeecf
drm/amd/display: Serialize is_dp_sink_present

Access to GPIO needs to be serialized. Aux transactions are already
serialized in DRM but we also need to serialize access to the GPIO pin
for purposes of DP dongle detection.

Call is_dp_sink_present through DM so we can lock correctly. This
follows the same pattern used for DPCD transactions.

Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Reviewed-by: Jun Lei <Jun.Lei@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c
drivers/gpu/drm/amd/display/dc/core/dc_link.c
drivers/gpu/drm/amd/display/dc/dc_link.h
drivers/gpu/drm/amd/display/dc/dm_helpers.h