Skip to content

Commit

Permalink
drm/exynos: Fix double locks at PM resume
Browse files Browse the repository at this point in the history
The recent commit [3ea8785: drm/helper: lock all around force mode
restore] introduced drm_modeset_lock_all() in
drm_helper_resume_force_mode() itself, while exynos driver takes this
lock before calling it.  Move the function call outside the lock for
avoiding a deadlock.

Signed-off-by: Takashi Iwai <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
  • Loading branch information
tiwai authored and danvet committed Jun 2, 2014
1 parent d3dbd9b commit e4f0fd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/exynos/exynos_drm_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,9 @@ static int exynos_drm_resume(struct drm_device *dev)
if (connector->funcs->dpms)
connector->funcs->dpms(connector, connector->dpms);
}
drm_modeset_unlock_all(dev);

drm_helper_resume_force_mode(dev);
drm_modeset_unlock_all(dev);

return 0;
}
Expand Down

0 comments on commit e4f0fd8

Please sign in to comment.