From c48f8d18525ce26efabd2cfb26c9d4f6951119ca Mon Sep 17 00:00:00 2001 From: XiongZhang Date: Thu, 7 Mar 2013 12:32:37 +0800 Subject: [PATCH] ignore hot plug event during sleep phase --- ubuntu/i915/i915_irq.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ubuntu/i915/i915_irq.c b/ubuntu/i915/i915_irq.c index d871fa0..c96a578 100644 --- a/ubuntu/i915/i915_irq.c +++ b/ubuntu/i915/i915_irq.c @@ -287,6 +287,10 @@ static void i915_hotplug_work_func(struct work_struct *work) struct drm_device *dev = dev_priv->dev; struct drm_mode_config *mode_config = &dev->mode_config; struct intel_encoder *encoder; + + // in sleep mode,don't deal with monitor hotplug event + if (dev_priv->mm.suspended == 1) + return; mutex_lock(&mode_config->mutex); DRM_DEBUG_KMS("running encoder hotplug functions\n"); -- 1.7.9.5