From: Mark Brown <broonie@opensource.wolfsonmicro.com>
To: Ashish Jangam <Ashish.Jangam@kpitcummins.com>
Cc: "sameo@openedhand.com" <sameo@openedhand.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
Dajun Chen <Dajun.Chen@diasemi.com>
Subject: Re: [PATCHv1 1/11] MFD: MFD module of DA9052 PMIC driver
Date: Mon, 11 Apr 2011 06:39:59 -0700 [thread overview]
Message-ID: <20110411133958.GB24973@opensource.wolfsonmicro.com> (raw)
In-Reply-To: <E2CAE7F7B064EA49B5CE7EE9A4BB167D151B55613A@KCINPUNHJCMS01.kpit.com>
On Mon, Apr 11, 2011 at 05:01:12PM +0530, Ashish Jangam wrote:
> > > +static inline int da9052_request_irq(struct da9052 *da9052, int irq,
> > > + irq_handler_t handler, const char
> > *name,
> > > + void *data)
> > > + {
> > > + int ret;
> > > +
> > > + if (!da9052->irq_base)
> > > + return -EINVAL;
> > > +
> > > + ret = request_threaded_irq(da9052->irq_base + irq, NULL, handler,
> > > + IRQF_TRIGGER_LOW | IRQF_ONESHOT, name,
> > > + data);
> > Since you're implementing directly with genirq you don't need this
> > stuff, some drivers have it as they were written before genirq could
> > support devices on sleepy buses.
> DA9052 PMIC is event based so mfd device like touch, onkey, rtc etc gets register to their associated event by this function. In absence of the request_threaded_irq() call there will no mechanism for the said devices to receive their event. Hence we intend to keep this API call.
> In case our explanation is not inline with your review then kindly elaborate.
You're missing the point - the purpose of the code you're copying here
is to transition from an old, non-genirq interface for getting
interrupts to genirq. Now genirq can be used directly there's no need
to have a custom API in the driver.
next prev parent reply other threads:[~2011-04-11 14:49 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-06 13:31 [PATCHv1 1/11] MFD: MFD module of DA9052 PMIC driver Ashish Jangam
2011-04-06 13:59 ` Mark Brown
2011-04-11 11:31 ` Ashish Jangam
2011-04-11 13:39 ` Mark Brown [this message]
-- strict thread matches above, loose matches on Subject: below --
2011-04-13 12:32 Ashish Jangam
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=20110411133958.GB24973@opensource.wolfsonmicro.com \
--to=broonie@opensource.wolfsonmicro.com \
--cc=Ashish.Jangam@kpitcummins.com \
--cc=Dajun.Chen@diasemi.com \
--cc=linux-kernel@vger.kernel.org \
--cc=sameo@openedhand.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox