diff options
author | Domen Puncer <domen.puncer@telargo.com> | 2007-04-10 18:27:49 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-04-11 12:39:58 -0400 |
commit | 22132178b26c907d19f661a4ae7fd265962d417e (patch) | |
tree | 19d793af155047b56dfc0b910dc26f1cf3b65bab | |
parent | 5ab7ffea520948115a51a9931e1bb4c818aa8e35 (diff) |
[POWERPC] mpc52xx_pic: fix main interrupt masking
The bit setting was off by one.
Tested with RTC and GPIO_WKUP interrupts.
Signed-off-by: Domen Puncer <domen.puncer@telargo.com>
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
-rw-r--r-- | arch/powerpc/platforms/52xx/mpc52xx_pic.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/platforms/52xx/mpc52xx_pic.c b/arch/powerpc/platforms/52xx/mpc52xx_pic.c index c75192567e55..fbfff95b4437 100644 --- a/arch/powerpc/platforms/52xx/mpc52xx_pic.c +++ b/arch/powerpc/platforms/52xx/mpc52xx_pic.c | |||
@@ -128,7 +128,7 @@ static void mpc52xx_main_mask(unsigned int virq) | |||
128 | 128 | ||
129 | pr_debug("%s: irq=%x. l2=%d\n", __func__, irq, l2irq); | 129 | pr_debug("%s: irq=%x. l2=%d\n", __func__, irq, l2irq); |
130 | 130 | ||
131 | io_be_setbit(&intr->main_mask, 15 - l2irq); | 131 | io_be_setbit(&intr->main_mask, 16 - l2irq); |
132 | } | 132 | } |
133 | 133 | ||
134 | static void mpc52xx_main_unmask(unsigned int virq) | 134 | static void mpc52xx_main_unmask(unsigned int virq) |
@@ -141,7 +141,7 @@ static void mpc52xx_main_unmask(unsigned int virq) | |||
141 | 141 | ||
142 | pr_debug("%s: irq=%x. l2=%d\n", __func__, irq, l2irq); | 142 | pr_debug("%s: irq=%x. l2=%d\n", __func__, irq, l2irq); |
143 | 143 | ||
144 | io_be_clrbit(&intr->main_mask, 15 - l2irq); | 144 | io_be_clrbit(&intr->main_mask, 16 - l2irq); |
145 | } | 145 | } |
146 | 146 | ||
147 | static struct irq_chip mpc52xx_main_irqchip = { | 147 | static struct irq_chip mpc52xx_main_irqchip = { |