Re: [PATCH 3/3] arch: arm: mach-cns3xxx: Add external interruptpin demo program

From: Russell King - ARM Linux
Date: Thu Jul 28 2011 - 06:07:09 EST


On Fri, Jul 29, 2011 at 01:17:55AM +0800, Tommy Lin wrote:
> +#include <mach/gpio.h>

Need I mention it...
> +static irqreturn_t cns3xxx_ext_intr1_handler(int irq, void *dev_id)
> +{
> + int value;
> +
> + value = gpio_get_value(led_D6);
> +
> + disable_irq_nosync(irq);
> +
> + gpio_set_value(led_D6, !value);
> +
> + enable_irq(irq);

Why do you need the disable_irq/enable_irq ? The interrupt you're
dealing with will already be masked by the core genirq code.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/