From: Samuel Ortiz <sameo@linux.intel.com>
To: "Hennerich, Michael" <Michael.Hennerich@analog.com>
Cc: Mike Frysinger <vapier@gentoo.org>,
tglx@linutronix.de, uclinux-dist-devel@blackfin.uclinux.org,
linux-kernel@vger.kernel.org
Subject: Re: [Uclinux-dist-devel] [PATCH v2] mfd: ADP5520 Multifunction LCDBacklight and Keypad Input Device Driver
Date: Fri, 2 Oct 2009 16:05:18 +0200 [thread overview]
Message-ID: <20091002140517.GA1520@sortiz.org> (raw)
In-Reply-To: <8A42379416420646B9BFAC9682273B6D0E33B1AA@limkexm3.ad.analog.com>
Hi Michael,
On Fri, Oct 02, 2009 at 02:48:27PM +0100, Hennerich, Michael wrote:
> >From: uclinux-dist-devel-bounces@blackfin.uclinux.org
> [mailto:uclinux-dist-devel-
> >bounces@blackfin.uclinux.org] On Behalf Of Hennerich, Michael
> >Device Driver
> >
> >Hi Samuel,
> >
> >>From: Samuel Ortiz [mailto:sameo@linux.intel.com]
> >>Hi Mike,
> >>
> >>Some comments on this patch:
> >>
> >>On Wed, Sep 23, 2009 at 01:11:04AM -0400, Mike Frysinger wrote:
> >>> +static irqreturn_t adp5520_irq_handler(int irq, void *data)
> >>> +{
> >>> + struct adp5520_chip *chip = data;
> >>> +
> >>> + disable_irq_nosync(irq);
> >>> + schedule_work(&chip->irq_work);
> >>Have you considered using a threaded irq handler here ?
> >
> >The Linux version I developed this driver on didn't feature threaded
> irq
> >handlers.
> >But thanks I'm going to take a look here.
>
> Hi Samuel,
>
> Well the threaded irq handlers are no option here, since we use a Level
> Sensitive Interrupt.
> The work queue here is to schedule the main irq handler outside hardirq
> context.
> I2C can't we invoked form none sleepy context, so we can't clear the
> interrupt.
> This will cause that we execute the hardirq over and over again,
> preventing the irq thread to be run.
>
> The threaded irqs with its current implementation also doesn't allow me
> to disable the irq in the hardirq handler.
Ok, that's the piece I missed. Thanks for the clarification.
> There have been some discussions about this on lkml recently.
> Until there is a way to workaround this issue (handle_level_oneshot_irq,
> etc.),
> I like to stick with:
Fine with me, yes.
Cheers,
Samuel.
> >>> + disable_irq_nosync(irq);
> >>> + schedule_work(&chip->irq_work);
>
> Best regards,
> Michael
>
--
Intel Open Source Technology Centre
http://oss.intel.com/
next prev parent reply other threads:[~2009-10-02 14:03 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-17 18:27 [PATCH] mfd: ADP5520 Multifunction LCD Backlight and Keypad Input Device Driver Mike Frysinger
2009-09-23 5:11 ` [PATCH v2] " Mike Frysinger
2009-09-29 21:04 ` [Uclinux-dist-devel] " Mike Frysinger
2009-09-29 21:14 ` Andrew Morton
2009-09-29 21:19 ` Mike Frysinger
2009-09-29 21:31 ` Samuel Ortiz
2009-09-29 21:19 ` Andrew Morton
2009-09-29 21:57 ` Hennerich, Michael
2009-10-01 14:09 ` Samuel Ortiz
2009-10-02 9:38 ` Hennerich, Michael
2009-10-02 13:15 ` Samuel Ortiz
2009-10-02 14:39 ` Hennerich, Michael
2009-10-02 13:48 ` [Uclinux-dist-devel] [PATCH v2] mfd: ADP5520 Multifunction LCDBacklight " Hennerich, Michael
2009-10-02 14:05 ` Samuel Ortiz [this message]
2009-10-02 14:27 ` Mark Brown
2009-10-02 14:37 ` [Uclinux-dist-devel] [PATCH v2] mfd: ADP5520 MultifunctionLCDBacklight " Hennerich, Michael
2009-10-02 14:38 ` Mark Brown
2009-10-02 15:24 ` [Uclinux-dist-devel] [PATCH v2] mfd: ADP5520MultifunctionLCDBacklight " Hennerich, Michael
2009-10-06 7:44 ` [PATCH v3] mfd: ADP5520 Multifunction LCD Backlight " Mike Frysinger
2009-10-06 11:55 ` Mark Brown
2009-10-06 12:23 ` [PATCH v3] mfd: ADP5520 Multifunction LCD Backlight and KeypadInput " Hennerich, Michael
2009-10-06 12:36 ` Mark Brown
2009-10-06 12:55 ` Hennerich, Michael
2009-10-06 13:58 ` Mark Brown
2009-10-06 14:32 ` Hennerich, Michael
2009-10-06 14:48 ` Mark Brown
2009-10-06 15:05 ` Hennerich, Michael
2009-10-06 16:05 ` Mark Brown
2009-10-07 8:50 ` Hennerich, Michael
2009-10-07 10:06 ` Mark Brown
2009-10-07 12:11 ` Hennerich, Michael
2009-10-07 13:03 ` Mark Brown
2009-10-07 13:01 ` Hennerich, Michael
2009-10-07 13:19 ` Mark Brown
2009-10-07 13:35 ` Hennerich, Michael
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20091002140517.GA1520@sortiz.org \
--to=sameo@linux.intel.com \
--cc=Michael.Hennerich@analog.com \
--cc=linux-kernel@vger.kernel.org \
--cc=tglx@linutronix.de \
--cc=uclinux-dist-devel@blackfin.uclinux.org \
--cc=vapier@gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox