drm/radeon: Sprinkle drm_modeset_lock_all to appease locking checks
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 23 Sep 2015 18:26:45 +0000 (20:26 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 23 Sep 2015 21:23:46 +0000 (17:23 -0400)
commit6adaed5bfe4f6f0a0e027e87d5dd80bd9834d5f0
treeab1b17cea83faf55d9d1af406180c24a4b1df6f7
parent5c3422b0b135b46c8dca9c1d909c1ae84f3561bd
drm/radeon: Sprinkle drm_modeset_lock_all to appease locking checks

In

commit 7a3f3d6667f5f9ffd1517f6b21d64bbf5312042c
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 radeon resume/suspend code.

Fix them up.

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

Reported-and-tested-by: Borislav Petkov <bp@alien8.de>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/radeon_device.c