drm/i915: Clarify flow for disabling IRQs on storms
authorLyude Paul <lyude@redhat.com>
Tue, 6 Nov 2018 21:30:15 +0000 (16:30 -0500)
committerLyude Paul <lyude@redhat.com>
Wed, 7 Nov 2018 20:11:44 +0000 (15:11 -0500)
commit0759af9e75ca154602e28ef135bf980d1f2f4f30
tree32634b7637ef3cbd1aaaa7494891fcfbe1007885
parenta4af7889eb31f52f4fc4d8fae4e66eae04140125
drm/i915: Clarify flow for disabling IRQs on storms

This is rather confusing to look at as-is:
dev_priv->display.hpd_irq_setup(dev_priv); in intel_hpd_irq_handler()
handles disabling the actual HPD IRQ, while
intel_hpd_irq_storm_disable() handles moving the HPD pin state over from
MARK_DISABLED to DISABLED along with enabling polling for it.

Changes since v3:
- Rename i915_hpd_irq_storm_disable() to
  i915_hpd_irq_storm_switch_to_polling() - Rodrigo Vivi

Signed-off-by: Lyude Paul <lyude@redhat.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181106213017.14563-5-lyude@redhat.com
drivers/gpu/drm/i915/intel_hotplug.c