]> 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)
commit9b8f808d4d010a2406162f473b2a070c1e7bbadc
treeed5c11e0ab8c214bede4d9f9af03e3dd2cd34102
parent9dd5898f161bb653ebbc415e4459493b4eb6b4e3
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