]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
powerpc/mpic: Don't init the fsl error int until after mpic init
authorScott Wood <scottwood@freescale.com>
Wed, 21 May 2014 01:26:01 +0000 (20:26 -0500)
committerScott Wood <scottwood@freescale.com>
Thu, 22 May 2014 23:08:30 +0000 (18:08 -0500)
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>
arch/powerpc/sysdev/mpic.c

index 8209744b28290b8a2466cf2a8600f0f34d920708..be33c9768ea11b376669083eeb4eec605ae13e16 100644 (file)
@@ -1588,10 +1588,6 @@ void __init mpic_init(struct mpic *mpic)
                        num_timers = 8;
        }
 
-       /* FSL mpic error interrupt intialization */
-       if (mpic->flags & MPIC_FSL_HAS_EIMR)
-               mpic_err_int_init(mpic, MPIC_FSL_ERR_INT);
-
        /* Initialize timers to our reserved vectors and mask them for now */
        for (i = 0; i < num_timers; i++) {
                unsigned int offset = mpic_tm_offset(mpic, i);
@@ -1675,6 +1671,10 @@ void __init mpic_init(struct mpic *mpic)
                        irq_set_chained_handler(virq, &mpic_cascade);
                }
        }
+
+       /* FSL mpic error interrupt intialization */
+       if (mpic->flags & MPIC_FSL_HAS_EIMR)
+               mpic_err_int_init(mpic, MPIC_FSL_ERR_INT);
 }
 
 void __init mpic_set_clk_ratio(struct mpic *mpic, u32 clock_ratio)