Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

irqchip/ocelot: Comment sticky register clearing code

Add comment to the sticky register clearing code.

Signed-off-by: Sergey Matsievskiy <matsievskiysv@gmail.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/all/20240925184416.54204-3-matsievskiysv@gmail.com

authored by

Sergey Matsievskiy and committed by
Thomas Gleixner
7f1f78b9 9e9c4666

+6
+6
drivers/irqchip/irq-mscc-ocelot.c
··· 84 84 u32 val; 85 85 86 86 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 + */ 87 93 val = irq_reg_readl(gc, ICPU_CFG_INTR_INTR_TRIGGER(p, 0)) | 88 94 irq_reg_readl(gc, ICPU_CFG_INTR_INTR_TRIGGER(p, 1)); 89 95 if (!(val & mask))