]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Sprinkle drm_modeset_lock_all to appease locking checks
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 23 Sep 2015 18:32:06 +0000 (14:32 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 23 Sep 2015 21:23:46 +0000 (17:23 -0400)
commitf839e7b2abd409bf0f087960198a4b4d615a7ea2
treef559394d176b225facb8bb1928651cc954e9f44c
parentf2b07a86f6b763841a12549b990ff6bf62d9cf71
drm/amdgpu: Sprinkle drm_modeset_lock_all to appease locking checks

In

commit adb0550a31ad980d538ad3368a7300da12f0da3d
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date:   Thu Jul 9 23:44:28 2015 +0200

    drm: Check locking in drm_for_each_connector

I added locking checks to drm_for_each_connector but failed that
through drm_helper_connector_dpms -> drm_helper_choose_encoder_dpms
it's used in a few more places in the amdgpu resume/suspend code.

Fix them up.

Note that we could use the connector iterator macros in there too, but
that's for the future.

Port of radeon commit:
drm/radeon: Sprinkle drm_modeset_lock_all to appease locking checks

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c