Skip to content

Commit 7f1f78b

Browse files
Sergey MatsievskiyKAGA-KOKO
authored andcommitted
irqchip/ocelot: Comment sticky register clearing code
Add comment to the sticky register clearing code. Signed-off-by: Sergey Matsievskiy <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Link: https://lore.kernel.org/all/[email protected]
1 parent 9e9c466 commit 7f1f78b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

drivers/irqchip/irq-mscc-ocelot.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,12 @@ static void ocelot_irq_unmask(struct irq_data *data)
8484
u32 val;
8585

8686
irq_gc_lock(gc);
87+
/*
88+
* Clear sticky bits for edge mode interrupts.
89+
* Serval has only one trigger register replication, but the adjacent
90+
* register is always read as zero, so there's no need to handle this
91+
* case separately.
92+
*/
8793
val = irq_reg_readl(gc, ICPU_CFG_INTR_INTR_TRIGGER(p, 0)) |
8894
irq_reg_readl(gc, ICPU_CFG_INTR_INTR_TRIGGER(p, 1));
8995
if (!(val & mask))

0 commit comments

Comments
 (0)