From: Balaji Rao <balajirrao@openmoko.org>
To: Anton Vorontsov <avorontsov@ru.mvista.com>
Cc: linux-kernel@vger.kernel.org, Andy Green <andy@openmoko.com>,
Anton Vorontsov <cbou@mail.ru>,
David Woodhouse <dwmw2@infradead.org>
Subject: Re: [PATCH 5/7] power_supply: PCF50633 battery charger driver
Date: Tue, 16 Dec 2008 20:54:17 +0530 [thread overview]
Message-ID: <20081216152416.GB23859@cff.thadambail> (raw)
In-Reply-To: <20081215223811.GA2210@oksana.dev.rtsoft.ru>
On Tue, Dec 16, 2008 at 01:38:11AM +0300, Anton Vorontsov wrote:
> Hello Balaji,
>
> It's great to see OpenMoko patches submitted, much thanks
> for your work!
>
Hi Anton,
You are welcome!
> > +
> > + /* Set up IRQ handlers */
> > + for (i = 0; i < ARRAY_SIZE(mbc_irq_handlers); i++)
> > + pcf->irq_handler[mbc_irq_handlers[i]] =
> > + pcf50633_mbc_irq_handler;
>
> Ugh. Is there any particular reason why you don't implement a
> chained interrupt controller in the PCF core? (as in
> drivers/mfd/asic3.c, for example).
>
> That way you could do ordinary request_irq() for the MFD devices'
> interrupts.
>
> (I can only guess: you didn't make it because PCF is on the
> I2C bus, and it's just easier to handle devices via single
> workqueue in the core driver?)
>
Since we have a fixed number of irq consumers, it's much simpler doing
chained interrupts this way. Using an irq_chip is going to introduce
unnecessary complezity, I feel.
The V2, of the series (about to be sent) changes how irq managemt
is done - pcf50633_request_irq and pcf50633_free_irq are used.
Thank you for the review.
Will send a new version soon.
- Balaji
next prev parent reply other threads:[~2008-12-16 15:24 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-14 11:01 [PATCH 0/7] PCF50633 support Balaji Rao
2008-12-14 11:02 ` [PATCH 1/7] mfd: PCF50633 core driver Balaji Rao
2008-12-14 11:02 ` [PATCH 2/7] mfd: PCF50633 adc driver Balaji Rao
2008-12-14 11:02 ` [PATCH 3/7] mfd: PCF50633 gpio support Balaji Rao
2008-12-14 11:03 ` [PATCH 4/7] rtc: PCF50633 rtc driver Balaji Rao
2008-12-14 19:29 ` Alessandro Zummo
2008-12-14 22:04 ` Balaji Rao
2008-12-14 22:21 ` [rtc-linux] " Alessandro Zummo
2008-12-14 23:29 ` Balaji Rao
2008-12-14 23:39 ` Alessandro Zummo
2008-12-14 11:03 ` [PATCH 5/7] power_supply: PCF50633 battery charger driver Balaji Rao
2008-12-14 22:10 ` Balaji Rao
2008-12-15 22:38 ` Anton Vorontsov
2008-12-16 15:24 ` Balaji Rao [this message]
2008-12-14 11:03 ` [PATCH 6/7] input: PCF50633 input driver Balaji Rao
2008-12-15 7:35 ` Dmitry Torokhov
2008-12-16 15:18 ` Balaji Rao
2008-12-14 11:04 ` [PATCH 7/7] regulator: PCF50633 pmic driver Balaji Rao
2008-12-15 11:35 ` Mark Brown
2008-12-15 14:04 ` Balaji Rao
2008-12-16 10:27 ` Mark Brown
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=20081216152416.GB23859@cff.thadambail \
--to=balajirrao@openmoko.org \
--cc=andy@openmoko.com \
--cc=avorontsov@ru.mvista.com \
--cc=cbou@mail.ru \
--cc=dwmw2@infradead.org \
--cc=linux-kernel@vger.kernel.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
all inboxes | Powered by JetHome®