aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/irqchip/irq-dw-apb-ictl.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2025-03-13 15:31:27 +0100
committerThomas Gleixner <tglx@linutronix.de>2025-04-07 09:43:20 +0200
commitb00bee8afaca47fd4f716488eb3663ac1f0abc31 (patch)
tree29e4710f9aae6356a109c561b1b72deb62c8467f /drivers/irqchip/irq-dw-apb-ictl.c
parentgpio: mvebu: Convert generic irqchip locking to guard() (diff)
downloadlinux-b00bee8afaca47fd4f716488eb3663ac1f0abc31.tar.gz
linux-b00bee8afaca47fd4f716488eb3663ac1f0abc31.zip
irqchip: Convert generic irqchip locking to guards
Conversion was done with Coccinelle and a few manual fixups. In a few interrupt chip callbacks this changes replaces raw_spin_lock_irqsave() with a guard(raw_spinlock). That's intended and correct because those interrupt chip callbacks are invoked with the interrupt descriptor lock held and interrupts disabled. No point in using the irqsave variant. No functional change. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Link: https://lore.kernel.org/all/20250313142524.325627746@linutronix.de
Diffstat (limited to 'drivers/irqchip/irq-dw-apb-ictl.c')
-rw-r--r--drivers/irqchip/irq-dw-apb-ictl.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/irqchip/irq-dw-apb-ictl.c b/drivers/irqchip/irq-dw-apb-ictl.c
index d5c1c750c8d2..6874ec82f6da 100644
--- a/drivers/irqchip/irq-dw-apb-ictl.c
+++ b/drivers/irqchip/irq-dw-apb-ictl.c
@@ -101,10 +101,9 @@ static void dw_apb_ictl_resume(struct irq_data *d)
struct irq_chip_generic *gc = irq_data_get_irq_chip_data(d);
struct irq_chip_type *ct = irq_data_get_chip_type(d);
- irq_gc_lock(gc);
+ guard(raw_spinlock)(&gc->lock);
writel_relaxed(~0, gc->reg_base + ct->regs.enable);
writel_relaxed(*ct->mask_cache, gc->reg_base + ct->regs.mask);
- irq_gc_unlock(gc);
}
#else
#define dw_apb_ictl_resume NULL