Skip to content

Commit aa80581

Browse files
author
Scott Wood
committed
powerpc/mpic: Don't init the fsl error int until after mpic init
Besides other potential problems, if MPIC_NO_RESET is not set, the error interrupt will be masked after it is requested. Signed-off-by: Scott Wood <scottwood@freescale.com>
1 parent 0c0fc4d commit aa80581

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎arch/powerpc/sysdev/mpic.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1588,10 +1588,6 @@ void __init mpic_init(struct mpic *mpic)
15881588
num_timers = 8;
15891589
}
15901590

1591-
/* FSL mpic error interrupt intialization */
1592-
if (mpic->flags & MPIC_FSL_HAS_EIMR)
1593-
mpic_err_int_init(mpic, MPIC_FSL_ERR_INT);
1594-
15951591
/* Initialize timers to our reserved vectors and mask them for now */
15961592
for (i = 0; i < num_timers; i++) {
15971593
unsigned int offset = mpic_tm_offset(mpic, i);
@@ -1675,6 +1671,10 @@ void __init mpic_init(struct mpic *mpic)
16751671
irq_set_chained_handler(virq, &mpic_cascade);
16761672
}
16771673
}
1674+
1675+
/* FSL mpic error interrupt intialization */
1676+
if (mpic->flags & MPIC_FSL_HAS_EIMR)
1677+
mpic_err_int_init(mpic, MPIC_FSL_ERR_INT);
16781678
}
16791679

16801680
void __init mpic_set_clk_ratio(struct mpic *mpic, u32 clock_ratio)

0 commit comments

Comments
 (0)