]> git.baikalelectronics.ru Git - kernel.git/commit
drm/fbdev-helper: Grab mode_config.mutex in drm_fb_helper_single_add_all_connectors
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 9 Jul 2015 21:44:27 +0000 (23:44 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 22 Jul 2015 14:25:45 +0000 (16:25 +0200)
commit4beeb43e8e60e82e5a5634e5dd3a8fc0c51abfca
tree16861beb9f0acb861ac7e1d571df9ddb098abff3
parentc6b5b6b2c3775b220411320c53ed9a2bfee64c8f
drm/fbdev-helper: Grab mode_config.mutex in drm_fb_helper_single_add_all_connectors

This is now truly only duct-tape to keep locking checks happy since
calling this function when hpd or polling are already enabled is a
bug. The fbdev helper can't cope with hotplug changes yet at this
point, only after that.

Otoh a bit more robustness in this function can't hurt, and with this
fbdev can actually cope with hotplug changes. And it's also more
consistent with the connector hotadd/remove dp mst needs to do.
Therefore document this as new official behavior.

Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
drivers/gpu/drm/drm_fb_helper.c