Skip to content

Commit 9770c66

Browse files
miquelraynalMarc Zyngier
authored andcommitted
irqchip/irq-mvebu-icu: Clarify the reset operation of configured interrupts
Rewrite a small section to clarify the reset operation of interrupts already configured by ATF that we want to handle in the driver. This will simplify the introduction of System Error Interrupts support. Reviewed-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
1 parent 2b4dab6 commit 9770c66

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

drivers/irqchip/irq-mvebu-icu.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,8 +258,12 @@ static int mvebu_icu_probe(struct platform_device *pdev)
258258
* avoid unpredictable SPI assignments done by firmware.
259259
*/
260260
for (i = 0 ; i < ICU_MAX_IRQS ; i++) {
261-
u32 icu_int = readl_relaxed(icu->base + ICU_INT_CFG(i));
262-
if ((icu_int >> ICU_GROUP_SHIFT) == ICU_GRP_NSR)
261+
u32 icu_int, icu_grp;
262+
263+
icu_int = readl_relaxed(icu->base + ICU_INT_CFG(i));
264+
icu_grp = icu_int >> ICU_GROUP_SHIFT;
265+
266+
if (icu_grp == ICU_GRP_NSR)
263267
writel_relaxed(0x0, icu->base + ICU_INT_CFG(i));
264268
}
265269

0 commit comments

Comments
 (0)