Commit b40feec8 authored by arnd@arndb.de's avatar arnd@arndb.de Committed by Paul Mackerras

[POWERPC] cell: fix interrupt priority handling

Checking the priority field to test for irq validity is
completely bogus and breaks with future external interrupt
controllers.
Signed-off-by: default avatarArnd Bergmann <arnd.bergmann@de.ibm.com>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent acf7d768
...@@ -117,8 +117,7 @@ static int iic_external_get_irq(struct cbe_iic_pending_bits pending) ...@@ -117,8 +117,7 @@ static int iic_external_get_irq(struct cbe_iic_pending_bits pending)
* One of these units can be connected * One of these units can be connected
* to an external interrupt controller. * to an external interrupt controller.
*/ */
if (pending.prio > 0x3f || if (pending.class != 2)
pending.class != 2)
break; break;
irq = IIC_EXT_OFFSET irq = IIC_EXT_OFFSET
+ spider_get_irq(node) + spider_get_irq(node)
......
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