diff options
author | Sebastian Andrzej Siewior <bigeasy@linutronix.de> | 2022-09-19 15:44:28 +0300 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2022-09-19 16:08:38 +0300 |
commit | c6a91405ac5cd5baa03fea061e11b05788223160 (patch) | |
tree | bf095adb33cee0ec2129a55e1fd9d3298671f60e /drivers/platform | |
parent | f285de79569f9e674816a67308316206e4eb30ee (diff) | |
download | linux-c6a91405ac5cd5baa03fea061e11b05788223160.tar.xz |
platform/x86: intel_int0002_vgpio: Use generic_handle_irq_safe()
On PREEMPT_RT enabled kernels the demultiplex interrupt handler is force
threaded and runs with interrupts enabled. The invocation of
generic_handle_irq() with interrupts enabled triggers a lockdep warning due
to a non-irq safe lock acquisition.
Instead of disabling interrupts on the driver level, use
generic_handle_domain_irq_safe().
[ tglx: Split out from combo patch ]
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/YnkfWFzvusFFktSt@linutronix.de
Diffstat (limited to 'drivers/platform')
-rw-r--r-- | drivers/platform/x86/intel/int0002_vgpio.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/platform/x86/intel/int0002_vgpio.c b/drivers/platform/x86/intel/int0002_vgpio.c index 617dbf98980e..97cfbc520a02 100644 --- a/drivers/platform/x86/intel/int0002_vgpio.c +++ b/drivers/platform/x86/intel/int0002_vgpio.c @@ -125,8 +125,7 @@ static irqreturn_t int0002_irq(int irq, void *data) if (!(gpe_sts_reg & GPE0A_PME_B0_STS_BIT)) return IRQ_NONE; - generic_handle_irq(irq_find_mapping(chip->irq.domain, - GPE0A_PME_B0_VIRT_GPIO_PIN)); + generic_handle_domain_irq_safe(chip->irq.domain, GPE0A_PME_B0_VIRT_GPIO_PIN); pm_wakeup_hard_event(chip->parent); |