Commit a45d2e40 authored by Philippe Gerum's avatar Philippe Gerum

irqchip: brcmstb-l2: fix irq_gc locking

parent 23e51721
......@@ -87,13 +87,14 @@ static void brcmstb_l2_mask_and_ack(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);
unsigned long flags;
u32 mask = d->mask;
flags = irq_gc_lock(gc);
irq_reg_writel(gc, mask, ct->regs.disable);
*ct->mask_cache &= ~mask;
irq_reg_writel(gc, mask, ct->regs.ack);
irq_gc_unlock(gc, flags);
static void brcmstb_l2_intc_irq_handle(struct irq_desc *desc)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment