mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-07 07:08:07 +00:00
drm/i915: put back the indent in intel_hpd_irq_handler
In an unfortunate back and forth stepping, retract the earlier change to reduce indent. This is to make merging the two loops easier. No functional changes. Signed-off-by: Jani Nikula <jani.nikula@intel.com> Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
parent
641a969eff
commit
ab68d5bb0b
1 changed files with 26 additions and 27 deletions
|
@ -1442,39 +1442,38 @@ static void intel_hpd_irq_handler(struct drm_device *dev,
|
||||||
|
|
||||||
spin_lock(&dev_priv->irq_lock);
|
spin_lock(&dev_priv->irq_lock);
|
||||||
for_each_hpd_pin(i) {
|
for_each_hpd_pin(i) {
|
||||||
bool long_hpd;
|
|
||||||
|
|
||||||
if (!(hpd[i] & hotplug_trigger))
|
if (!(hpd[i] & hotplug_trigger))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
port = get_port_from_pin(i);
|
port = get_port_from_pin(i);
|
||||||
if (!port || !dev_priv->hotplug.irq_port[port])
|
if (port && dev_priv->hotplug.irq_port[port]) {
|
||||||
continue;
|
bool long_hpd;
|
||||||
|
|
||||||
if (!HAS_GMCH_DISPLAY(dev_priv)) {
|
if (!HAS_GMCH_DISPLAY(dev_priv)) {
|
||||||
dig_shift = pch_port_to_hotplug_shift(port);
|
dig_shift = pch_port_to_hotplug_shift(port);
|
||||||
long_hpd = (dig_hotplug_reg >> dig_shift) & PORTB_HOTPLUG_LONG_DETECT;
|
long_hpd = (dig_hotplug_reg >> dig_shift) & PORTB_HOTPLUG_LONG_DETECT;
|
||||||
} else {
|
} else {
|
||||||
dig_shift = i915_port_to_hotplug_shift(port);
|
dig_shift = i915_port_to_hotplug_shift(port);
|
||||||
long_hpd = (hotplug_trigger >> dig_shift) & PORTB_HOTPLUG_LONG_DETECT;
|
long_hpd = (hotplug_trigger >> dig_shift) & PORTB_HOTPLUG_LONG_DETECT;
|
||||||
|
}
|
||||||
|
|
||||||
|
DRM_DEBUG_DRIVER("digital hpd port %c - %s\n", port_name(port),
|
||||||
|
long_hpd ? "long" : "short");
|
||||||
|
/*
|
||||||
|
* For long HPD pulses we want to have the digital queue happen,
|
||||||
|
* but we still want HPD storm detection to function.
|
||||||
|
*/
|
||||||
|
if (long_hpd) {
|
||||||
|
dev_priv->hotplug.long_port_mask |= (1 << port);
|
||||||
|
dig_port_mask |= hpd[i];
|
||||||
|
} else {
|
||||||
|
/* for short HPD just trigger the digital queue */
|
||||||
|
dev_priv->hotplug.short_port_mask |= (1 << port);
|
||||||
|
hotplug_trigger &= ~hpd[i];
|
||||||
|
}
|
||||||
|
|
||||||
|
queue_dig = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
DRM_DEBUG_DRIVER("digital hpd port %c - %s\n", port_name(port),
|
|
||||||
long_hpd ? "long" : "short");
|
|
||||||
/*
|
|
||||||
* For long HPD pulses we want to have the digital queue happen,
|
|
||||||
* but we still want HPD storm detection to function.
|
|
||||||
*/
|
|
||||||
if (long_hpd) {
|
|
||||||
dev_priv->hotplug.long_port_mask |= (1 << port);
|
|
||||||
dig_port_mask |= hpd[i];
|
|
||||||
} else {
|
|
||||||
/* for short HPD just trigger the digital queue */
|
|
||||||
dev_priv->hotplug.short_port_mask |= (1 << port);
|
|
||||||
hotplug_trigger &= ~hpd[i];
|
|
||||||
}
|
|
||||||
|
|
||||||
queue_dig = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for_each_hpd_pin(i) {
|
for_each_hpd_pin(i) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue