From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Rabin Vincent <rabin.vincent@stericsson.com>
Cc: Sundar R IYER <sundar.iyer@stericsson.com>,
"sameo@linux.intel.com" <sameo@linux.intel.com>,
"linux-input@vger.kernel.org" <linux-input@vger.kernel.org>,
STEricsson_nomadik_linux <STEricsson_nomadik_linux@list.st.com>
Subject: Re: [PATCH] input: add support for PowerOn(PonKey) button on the AB8500 MFD
Date: Thu, 2 Sep 2010 10:22:23 -0700 [thread overview]
Message-ID: <20100902172222.GA17386@core.coreip.homeip.net> (raw)
In-Reply-To: <20100902065537.GA26429@bnru01.bnr.st.com>
On Thu, Sep 02, 2010 at 12:25:37PM +0530, Rabin Vincent wrote:
> On Wed, Sep 01, 2010 at 18:51:42 +0200, Dmitry Torokhov wrote:
> > On Wed, Sep 01, 2010 at 01:05:51PM +0530, Sundar Iyer wrote:
> > > + ret = request_threaded_irq(info->irq_dbr, NULL, ab8500_ponkey_handler,
> > > + 0, "ab8500-ponkey-dbr", info);
> > > + if (ret < 0) {
> > > + dev_err(ab8500->dev, "Failed to request dbr IRQ#%d: %d\n",
> > > + info->irq_dbr, ret);
> > > + goto out_irq_dbf;
> > > + }
> > > +
> >
> > Why threaded IRQs? The interrupt handlers do not do _anything_ except for
> > passing the event up. Do you really think that starting 2 kernel threads
> > to handle 1 button is the best use of the resources???
>
> Because the parent MFD uses nested threads for handling interrupts, you
> must specify a thread function. No new thread is started; this
> interrupt handler is called from the parent MFD's interrupt thread.
>
I see.
> >
> > I'll change it to use normal interrupts locally, no need to resubmit.
>
> Changing it to request_irq() will cause it to fail, because __setup_irq
> will error out if this is a nested thread interrupt and no interrupt
> thread is specified. request_any_context_irq() should work, if you
> would like to get rid of explicitly asking for a threaded irq.
>
OK, request_any_context_irq() it is then.
--
Dmitry
next prev parent reply other threads:[~2010-09-02 17:22 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-01 7:35 [PATCH] input: add support for PowerOn(PonKey) button on the AB8500 MFD Sundar Iyer
2010-09-01 16:51 ` Dmitry Torokhov
2010-09-02 6:55 ` Rabin Vincent
2010-09-02 17:22 ` Dmitry Torokhov [this message]
2010-09-02 19:53 ` Trilok Soni
2010-09-02 20:24 ` Dmitry Torokhov
2010-09-03 5:16 ` Trilok Soni
2010-09-03 16:43 ` Dmitry Torokhov
2010-09-03 7:10 ` Trilok Soni
2010-09-03 7:20 ` Sundar R IYER
2010-09-03 7:54 ` Trilok Soni
2010-09-03 16:40 ` Dmitry Torokhov
2010-09-03 19:06 ` Trilok Soni
2010-09-06 3:11 ` Sundar R IYER
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=20100902172222.GA17386@core.coreip.homeip.net \
--to=dmitry.torokhov@gmail.com \
--cc=STEricsson_nomadik_linux@list.st.com \
--cc=linux-input@vger.kernel.org \
--cc=rabin.vincent@stericsson.com \
--cc=sameo@linux.intel.com \
--cc=sundar.iyer@stericsson.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.