diff options
Diffstat (limited to 'sys/dev/pci/drm/i915/i915_irq.c')
-rw-r--r-- | sys/dev/pci/drm/i915/i915_irq.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/pci/drm/i915/i915_irq.c b/sys/dev/pci/drm/i915/i915_irq.c index f550d346774..460e6219a27 100644 --- a/sys/dev/pci/drm/i915/i915_irq.c +++ b/sys/dev/pci/drm/i915/i915_irq.c @@ -348,6 +348,10 @@ i915_hotplug_work_func(void *arg1, void *arg2) struct drm_mode_config *mode_config = &dev->mode_config; struct intel_encoder *encoder; + /* HPD irq before everything is fully set up. */ + if (!dev_priv->enable_hotplug_processing) + return; + rw_enter_write(&mode_config->rwl); DRM_DEBUG_KMS("running encoder hotplug functions\n"); |