Commit e16fa6b9 authored by Kumar Gala's avatar Kumar Gala Committed by Linus Torvalds

[PATCH] ppc32: Fix an off-by-one error in ipic_init

There is an off-by-one error in the IPIC code that configures the
external interrupts (Edge or Level Sensitive).
Signed-off-by: default avatarRandy Vinson <rvinson@mvista.com>
Signed-off-by: default avatarKumar Gala <kumar.gala@freescale.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 1263cc67
...@@ -479,7 +479,7 @@ void __init ipic_init(phys_addr_t phys_addr, ...@@ -479,7 +479,7 @@ void __init ipic_init(phys_addr_t phys_addr,
temp = 0; temp = 0;
for (i = 0 ; i < senses_count ; i++) { for (i = 0 ; i < senses_count ; i++) {
if ((senses[i] & IRQ_SENSE_MASK) == IRQ_SENSE_EDGE) { if ((senses[i] & IRQ_SENSE_MASK) == IRQ_SENSE_EDGE) {
temp |= 1 << (16 - i); temp |= 1 << (15 - i);
if (i != 0) if (i != 0)
irq_desc[i + irq_offset + MPC83xx_IRQ_EXT1 - 1].status = 0; irq_desc[i + irq_offset + MPC83xx_IRQ_EXT1 - 1].status = 0;
else else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment