drm/fb-helper: Push locking into restore_fbdev_mode_atomic|legacy
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 4 Jul 2017 15:18:27 +0000 (17:18 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 6 Jul 2017 08:01:47 +0000 (10:01 +0200)
commit1d0c641091805b9ca382ac44d022a4963e47f33e
tree77a76f0320e6fa873816eb5c7dd153412b7b4239
parent5c2e3448d104dc85250467af9ecc1e4779c56090
drm/fb-helper: Push locking into restore_fbdev_mode_atomic|legacy

Same game as with the panning function, use drm_modeset_lock_all for
legacy paths, and a proper acquire ctx w/w mutex dance for atomic.

Cc: John Stultz <john.stultz@linaro.org>
Cc: Thierry Reding <treding@nvidia.com>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170704151833.17304-8-daniel.vetter@ffwll.ch
drivers/gpu/drm/drm_fb_helper.c