Re: disabling "double-calling" of level-driven interrupts

From: Grant Coady
Date: Sat May 07 2005 - 19:33:15 EST


On Sat, 7 May 2005 21:32:12 +0100, Luke Kenneth Casson Leighton <lkcl@xxxxxxxx> wrote:

>something he said made me go "twitch" - the infrastructure involving
>interrupts in the 2.6 kernel - that they can be called TWICE.
>
>well, that's exactly what i am seeing happen - even when the
>relevant INTSR1 bit is clear.
>
>at the top of the interrupt service routine, i double-check the
>bit of INTSR1 that caused the interrupt.
>
>i find it to be clear.
>
>doing an immediate return IRQ_HANDLED results in working code,
>whereas before, the behaviour of our LCD was utterly unreliable.

Isn't that the whole idea of level triggered interrupts? Your
device may not be the one asserting IRQ, if the IRQ is not yours,
let it go and something else will check to see if the IRQ is theirs.

--Grant.

-
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/