]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/i915/irq: move check for HAS_HOTPLUG() inside i9xx_hpd_irq_ack()
authorJani Nikula <jani.nikula@intel.com>
Tue, 23 Sep 2025 14:31:07 +0000 (17:31 +0300)
committerJani Nikula <jani.nikula@intel.com>
Wed, 24 Sep 2025 06:31:07 +0000 (09:31 +0300)
commitc39d3e2dd9dc97f15546e634934a47a81d95c44c
tree2157c902e1a7340d620196d3eb99a9d24d4b79ea
parentd54c636db529d2c73e49a7be8a55afd530977f5c
drm/i915/irq: move check for HAS_HOTPLUG() inside i9xx_hpd_irq_ack()

We want to avoid using the display dependent HAS_HOTPLUG() in generic
irq code. Since the enabling of I915_DISPLAY_PORT_INTERRUPT depends on
HAS_HOTPLUG() to begin with, we don't really expect to get the irqs for
!HAS_HOTPLUG(). At least in theory, checking for HAS_HOTPLUG() inside
i9xx_hpd_irq_ack() should not have any impact.

Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://lore.kernel.org/r/2f97c077e67667bf420196c7381553d5286da958.1758637773.git.jani.nikula@intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/display/intel_hotplug_irq.c
drivers/gpu/drm/i915/i915_irq.c