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)
commitaac5db824d6f5997344101ae0e71fbb003b9692b
treeed5c11e0ab8c214bede4d9f9af03e3dd2cd34102
parent1bd493e37807c4bf7ee8c4809d2d83545379c04d
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