[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20100423133012.GC28132@sirena.org.uk>
Date: Fri, 23 Apr 2010 14:30:12 +0100
From: Mark Brown <broonie@...nsource.wolfsonmicro.com>
To: Will Newton <will.newton@...il.com>
Cc: Yong Zhang <yong.zhang@...driver.com>,
Linux Kernel list <linux-kernel@...r.kernel.org>,
Thomas Gleixner <tglx@...utronix.de>
Subject: Re: Threaded irq handler question
On Thu, Apr 22, 2010 at 11:51:06AM +0100, Will Newton wrote:
> On Thu, Apr 22, 2010 at 2:37 AM, Yong Zhang <yong.zhang@...driver.com> wrote:
> > Does IRQF_ONESHOT meet your need?
> Almost I think, but I believe if my check handler does not wake the
> thread then I don't get another interrupt ever. I can fix this by
> making my check handler always return WAKE_THREAD, which is slightly
> sub-optimal, but not a big problem.
You shouldn't have a primary IRQ handler at all for I2C type devices
where there's no ability to interact with the chip.
[Sorry, hadn't noticed this subthread.]
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists