]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Call non-locking version of drm_kms_helper_poll_enable(), v2
authorEgbert Eich <eich@suse.de>
Wed, 23 Sep 2015 14:13:01 +0000 (16:13 +0200)
committerJani Nikula <jani.nikula@intel.com>
Wed, 30 Sep 2015 13:32:27 +0000 (16:32 +0300)
commitacfa320b4ad5d4fcd3ca1df960b17e9792e59965
treee27a5486c5fc54035fa6bb8733e412ad3ba193e2
parentf886761cf52fa7f8b93fbcb55183ad6f7e47adf1
drm/i915: Call non-locking version of drm_kms_helper_poll_enable(), v2

drm_kms_helper_poll_enable() is called from a context in
intel_hpd_irq_storm_disable() where the the mode_config mutex is
already locked.
When this function was converted to lock this mutex in
commit c6b5b6b2c377 ("drm/probe-helper: Grab mode_config.mutex
in poll_init/enable") a deadlock occurred.
Call the newly implemented non-locking version of this function.

Changes since v1:
- use function name suffix '_locked' for the function that
  is to be called from a locked context.

Signed-off-by: Egbert Eich <eich@suse.de>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/intel_hotplug.c