aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_drv.c
diff options
context:
space:
mode:
authorJesse Barnes <jbarnes@virtuousgeek.org>2014-05-20 18:25:33 -0400
committerDaniel Vetter <daniel.vetter@ffwll.ch>2014-05-21 02:53:01 -0400
commit1ff74cf15a376a98d5c7c5b6dcb9aebd9734acdd (patch)
treec79da52ebc1d05c8bd05b137c47d876f51408771 /drivers/gpu/drm/i915/i915_drv.c
parentbc76e320f21f8bd790a72bd5dc06909617432352 (diff)
drm/i915: drop encoder hot_plug calls at resume
We really just want to go detect displays again and fire off a hotplug event if things have changed, not go through full hotplug processing. Requested-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_drv.c')
-rw-r--r--drivers/gpu/drm/i915/i915_drv.c20
1 files changed, 1 insertions, 19 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c
index 009d677a2385..d9e06e751523 100644
--- a/drivers/gpu/drm/i915/i915_drv.c
+++ b/drivers/gpu/drm/i915/i915_drv.c
@@ -597,24 +597,6 @@ void intel_console_resume(struct work_struct *work)
597 console_unlock(); 597 console_unlock();
598} 598}
599 599
600static void intel_resume_hotplug(struct drm_device *dev)
601{
602 struct drm_mode_config *mode_config = &dev->mode_config;
603 struct intel_encoder *encoder;
604
605 mutex_lock(&mode_config->mutex);
606 DRM_DEBUG_KMS("running encoder hotplug functions\n");
607
608 list_for_each_entry(encoder, &mode_config->encoder_list, base.head)
609 if (encoder->hot_plug)
610 encoder->hot_plug(encoder);
611
612 mutex_unlock(&mode_config->mutex);
613
614 /* Just fire off a uevent and let userspace tell us what to do */
615 drm_helper_hpd_irq_event(dev);
616}
617
618static int i915_drm_thaw_early(struct drm_device *dev) 600static int i915_drm_thaw_early(struct drm_device *dev)
619{ 601{
620 struct drm_i915_private *dev_priv = dev->dev_private; 602 struct drm_i915_private *dev_priv = dev->dev_private;
@@ -670,7 +652,7 @@ static int __i915_drm_thaw(struct drm_device *dev, bool restore_gtt_mappings)
670 intel_hpd_init(dev); 652 intel_hpd_init(dev);
671 dev_priv->enable_hotplug_processing = true; 653 dev_priv->enable_hotplug_processing = true;
672 /* Config may have changed between suspend and resume */ 654 /* Config may have changed between suspend and resume */
673 intel_resume_hotplug(dev); 655 drm_helper_hpd_irq_event(dev);
674 } 656 }
675 657
676 intel_opregion_init(dev); 658 intel_opregion_init(dev);