aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2013-06-27 11:52:13 -0400
committerDaniel Vetter <daniel.vetter@ffwll.ch>2013-07-01 05:14:57 -0400
commit5876fa0d9e9097d980a72152f4967a52b1adaaac (patch)
tree2ad467a518453edc845f352db69ea8a67d864f48
parent10a504de56f0451c828a9207e36c5610d5b0209a (diff)
drm/i915: fold the queue_work into intel_hpd_irq_handler
Everywhere the same. Note that this patch leaves unnecessary braces behind, but the next patch will kill those all anyway (including the if itself) so I've figured I can keep the diff a bit smaller. v2: Rebase on top of the i965g/gm sdvo hpd fix. Cc: Egbert Eich <eich@suse.de> Reviewed-by: Egbert Eich <eich@suse.de> Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
-rw-r--r--drivers/gpu/drm/i915/i915_irq.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/drivers/gpu/drm/i915/i915_irq.c b/drivers/gpu/drm/i915/i915_irq.c
index c1e9b0a0861c..531df31075d2 100644
--- a/drivers/gpu/drm/i915/i915_irq.c
+++ b/drivers/gpu/drm/i915/i915_irq.c
@@ -909,6 +909,9 @@ static inline void intel_hpd_irq_handler(struct drm_device *dev,
909 909
910 if (storm_detected) 910 if (storm_detected)
911 dev_priv->display.hpd_irq_setup(dev); 911 dev_priv->display.hpd_irq_setup(dev);
912
913 queue_work(dev_priv->wq,
914 &dev_priv->hotplug_work);
912} 915}
913 916
914static void gmbus_irq_handler(struct drm_device *dev) 917static void gmbus_irq_handler(struct drm_device *dev)
@@ -1017,8 +1020,6 @@ static irqreturn_t valleyview_irq_handler(int irq, void *arg)
1017 hotplug_status); 1020 hotplug_status);
1018 if (hotplug_trigger) { 1021 if (hotplug_trigger) {
1019 intel_hpd_irq_handler(dev, hotplug_trigger, hpd_status_i915); 1022 intel_hpd_irq_handler(dev, hotplug_trigger, hpd_status_i915);
1020 queue_work(dev_priv->wq,
1021 &dev_priv->hotplug_work);
1022 } 1023 }
1023 I915_WRITE(PORT_HOTPLUG_STAT, hotplug_status); 1024 I915_WRITE(PORT_HOTPLUG_STAT, hotplug_status);
1024 I915_READ(PORT_HOTPLUG_STAT); 1025 I915_READ(PORT_HOTPLUG_STAT);
@@ -1047,7 +1048,6 @@ static void ibx_irq_handler(struct drm_device *dev, u32 pch_iir)
1047 1048
1048 if (hotplug_trigger) { 1049 if (hotplug_trigger) {
1049 intel_hpd_irq_handler(dev, hotplug_trigger, hpd_ibx); 1050 intel_hpd_irq_handler(dev, hotplug_trigger, hpd_ibx);
1050 queue_work(dev_priv->wq, &dev_priv->hotplug_work);
1051 } 1051 }
1052 if (pch_iir & SDE_AUDIO_POWER_MASK) { 1052 if (pch_iir & SDE_AUDIO_POWER_MASK) {
1053 int port = ffs((pch_iir & SDE_AUDIO_POWER_MASK) >> 1053 int port = ffs((pch_iir & SDE_AUDIO_POWER_MASK) >>
@@ -1151,7 +1151,6 @@ static void cpt_irq_handler(struct drm_device *dev, u32 pch_iir)
1151 1151
1152 if (hotplug_trigger) { 1152 if (hotplug_trigger) {
1153 intel_hpd_irq_handler(dev, hotplug_trigger, hpd_cpt); 1153 intel_hpd_irq_handler(dev, hotplug_trigger, hpd_cpt);
1154 queue_work(dev_priv->wq, &dev_priv->hotplug_work);
1155 } 1154 }
1156 if (pch_iir & SDE_AUDIO_POWER_MASK_CPT) { 1155 if (pch_iir & SDE_AUDIO_POWER_MASK_CPT) {
1157 int port = ffs((pch_iir & SDE_AUDIO_POWER_MASK_CPT) >> 1156 int port = ffs((pch_iir & SDE_AUDIO_POWER_MASK_CPT) >>
@@ -3228,8 +3227,6 @@ static irqreturn_t i915_irq_handler(int irq, void *arg)
3228 hotplug_status); 3227 hotplug_status);
3229 if (hotplug_trigger) { 3228 if (hotplug_trigger) {
3230 intel_hpd_irq_handler(dev, hotplug_trigger, hpd_status_i915); 3229 intel_hpd_irq_handler(dev, hotplug_trigger, hpd_status_i915);
3231 queue_work(dev_priv->wq,
3232 &dev_priv->hotplug_work);
3233 } 3230 }
3234 I915_WRITE(PORT_HOTPLUG_STAT, hotplug_status); 3231 I915_WRITE(PORT_HOTPLUG_STAT, hotplug_status);
3235 POSTING_READ(PORT_HOTPLUG_STAT); 3232 POSTING_READ(PORT_HOTPLUG_STAT);
@@ -3469,8 +3466,6 @@ static irqreturn_t i965_irq_handler(int irq, void *arg)
3469 if (hotplug_trigger) { 3466 if (hotplug_trigger) {
3470 intel_hpd_irq_handler(dev, hotplug_trigger, 3467 intel_hpd_irq_handler(dev, hotplug_trigger,
3471 IS_G4X(dev) ? hpd_status_gen4 : hpd_status_i915); 3468 IS_G4X(dev) ? hpd_status_gen4 : hpd_status_i915);
3472 queue_work(dev_priv->wq,
3473 &dev_priv->hotplug_work);
3474 } 3469 }
3475 I915_WRITE(PORT_HOTPLUG_STAT, hotplug_status); 3470 I915_WRITE(PORT_HOTPLUG_STAT, hotplug_status);
3476 I915_READ(PORT_HOTPLUG_STAT); 3471 I915_READ(PORT_HOTPLUG_STAT);