]> git.baikalelectronics.ru Git - kernel.git/commit
drm/fb-helper: Stop using mode_config.mutex for internals
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 5 Jul 2017 04:56:29 +0000 (06:56 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 6 Jul 2017 08:02:01 +0000 (10:02 +0200)
commit3af9e648238ce3d14702221ed3d423095a0b3bd1
tree27f10eafafffccfd27ad744a7fc7da60c7970948
parenta6639e0f4bcad55a0b15dd924ab4906299c11471
drm/fb-helper: Stop using mode_config.mutex for internals

Those are now all protected using fb_helper->lock.

v2: We still need to hold mode_config.mutex right around calling
connector->fill_modes.

v3: I forgot to hold mode_config.mutex while looking at
connector->status and the mode list. Also, we need to patch up the
i915 ->initial_config callback to grab the locks it needs to inspect
the modeset state recovered from the fw.

v4: Don't reorder the probe too much (Ville).

Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
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/20170705045629.31265-1-daniel.vetter@ffwll.ch
drivers/gpu/drm/drm_fb_helper.c
drivers/gpu/drm/drm_vblank.c
drivers/gpu/drm/i915/intel_fbdev.c