]> err.no Git - linux-2.6/commitdiff
[PATCH] ppc32: Fix an off-by-one error in ipic_init
authorKumar Gala <galak@freescale.com>
Mon, 23 May 2005 17:29:56 +0000 (12:29 -0500)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Mon, 23 May 2005 17:58:31 +0000 (10:58 -0700)
There is an off-by-one error in the IPIC code that configures the
external interrupts (Edge or Level Sensitive).

Signed-off-by: Randy Vinson <rvinson@mvista.com>
Signed-off-by: Kumar Gala <kumar.gala@freescale.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/ppc/syslib/ipic.c

index acb2cde3171f8d141b7f38f95e9def9a62210851..580ed658e87253b51873b624ed5b8f0d228f1ba5 100644 (file)
@@ -479,7 +479,7 @@ void __init ipic_init(phys_addr_t phys_addr,
        temp = 0;
        for (i = 0 ; i < senses_count ; i++) {
                if ((senses[i] & IRQ_SENSE_MASK) == IRQ_SENSE_EDGE) {
-                       temp |= 1 << (16 - i);
+                       temp |= 1 << (15 - i);
                        if (i != 0)
                                irq_desc[i + irq_offset + MPC83xx_IRQ_EXT1 - 1].status = 0;
                        else