arm:lpc32xx:Fix for Edge triggered IRQs
authorBangaragiri G <bangaragiri.g@nxp.com>
Fri, 13 Jul 2012 17:04:50 +0000 (17:04 +0000)
committerBangaragiri G <bangaragiri.g@nxp.com>
Fri, 13 Jul 2012 17:04:50 +0000 (17:04 +0000)
We need to fix our IRQ handling to have handle_edge_irq
flow handlers for edge triggered interrupts

Signed-off-by: Bangaragiri G <bangaragiri.g@nxp.com>

arch/arm/mach-lpc32xx/irq.c

index 69e300a..66a457d 100644 (file)
@@ -336,11 +336,13 @@ static int lpc32xx_set_irq_type(unsigned int irq, unsigned int type)
        case IRQ_TYPE_EDGE_RISING:
                /* Rising edge sensitive */
                __lpc32xx_set_irq_type(irq, 1, 1);
+               set_irq_handler(irq, handle_edge_irq);
                break;
 
        case IRQ_TYPE_EDGE_FALLING:
                /* Falling edge sensitive */
                __lpc32xx_set_irq_type(irq, 0, 1);
+               set_irq_handler(irq, handle_edge_irq);
                break;
 
        case IRQ_TYPE_LEVEL_LOW: