[PATCH] warn about shared irqs requesting IRQF_DISABLED registered with setup_irq

Thomas Gleixner tglx at linutronix.de
Fri Nov 27 17:18:00 EST 2009


On Fri, 27 Nov 2009, Uwe Kleine-König wrote:

> IRQF_DISABLED is not guaranteed on shared irqs.  There is already a
> warning in place for irqs registered with request_irq (introduced in
> 470c66239ef03).  Move it to __setup_irq, this way it triggers for both
> request_irq and setup_irq.
> 
> One irq that is now warned about is the timer tick on at91 (ARCH=arm).

And how does that help ? The interrupt is shared between the timer and
the debug port. There is nothing you can do about that.

The interupt handlers are called in order of setup. The AT91 timer
irq is set up first and if that's not the case then it needs to be
fixed and the only way to catch it is in the affected interrupt
handler.

Applying your patch does not change the hardware and will just result
in useless, annoying and confusing dmesg warnings.

> Cc: Rusty Russell <rusty at rustcorp.com.au>
> Cc: Remy Bohmer <linux at bohmer.net>,
> Cc: Hugh Dickins <hugh.dickins at tiscali.co.uk>,
> Cc: Andrea Gallo <andrea.gallo at stericsson.com>,

Nice that you added me (and others) to that long list, but ...

> Cc: Thomas Gleixner <tglx at linutronix.de>,
------------------------------------------^

Thanks,

	tglx


More information about the linux-arm-kernel mailing list