[PULL] generic irq chip and pl061 irqdomain support
Grant Likely
grant.likely at secretlab.ca
Sat Apr 7 00:11:55 EDT 2012
On Mon, 02 Apr 2012 08:03:47 -0500, Rob Herring <robherring2 at gmail.com> wrote:
> Grant,
>
> On 03/13/2012 06:18 PM, Grant Likely wrote:
> > On Tue, 13 Mar 2012 17:54:47 -0500, Rob Herring <robherring2 at gmail.com> wrote:
> >> On 03/04/2012 09:50 PM, Rob Herring wrote:
> >>> Grant,
> >>>
> >>> On 02/14/2012 04:27 PM, Rob Herring wrote:
> >>>> Grant,
> >>>>
> >>>> Please pull. This is based on your current branch which you have said
> >>>> you plan to rebase, so feel free to rebase these as you need to. This
> >>>> has been tested on highbank and i.MX5.
> >>>>
> >>>
> >>> Ping.
> >>>
> >>> I've rebased onto your current tree. Updated pull request:
> >>>
> >>> The following changes since commit 280ad7fda5f95211857fda38960f2b6fdf6edd3e:
> >>>
> >>> mfd: twl-core: Add IRQ_DOMAIN dependency (2012-02-26 16:48:06 -0700)
> >>>
> >>> are available in the git repository at:
> >>> git://sources.calxeda.com/kernel/linux.git irqdomain-for-grant
> >>>
> >>> Rob Herring (3):
> >>> ARM: kconfig: always select IRQ_DOMAIN
> >>> irq: add irq_domain support to generic-chip
> >>> gpio: pl061: enable interrupts with DT style binding
> >>>
> >>> .../devicetree/bindings/gpio/pl061-gpio.txt | 15 ++
> >>> arch/arm/Kconfig | 2 +-
> >>> arch/arm/common/Kconfig | 2 -
> >>> drivers/gpio/gpio-pl061.c | 48 ++++---
> >>> include/linux/irq.h | 15 ++
> >>> kernel/irq/generic-chip.c | 152
> >>> +++++++++++++++++---
> >>> 6 files changed, 186 insertions(+), 48 deletions(-)
> >>>
> >>
> >> Ping again...
> >
> > Okay, I've pulled this in. I need to do some compile testing before I push
> > it out.
>
> What happened to this? It's not in rc1.
I kept looking at it and planning to send Linus a pull request, but I
just couldn't make myself comfortable with the state of the patch. It
seems to me that there is too much bleeding of irq_domain state into
irq_generic_chip and it doesn't return any meaningful context to the
caller that can be used to tear it back down.
I think for the domain+generic_chip use case the API needs refining so
that it returns a container structure with both the irq_domain and the
array of generic chips. Plus there needs to be a remove function
(there also needs to be an irq_domain remove function; I also realized
that was a missing piece when I looked at it).
I had really hoped to get fixup patches sorted out in time to still
get Linus to merge it even though it hadn't been through Linux next,
but given that I couldn't even find time to email you properly about
it, it seems I was doomed. :-( There weren't any other users of it
in linux-next though, so in the end I just didn't sent the pull req.
I've got a couple of fixup patches on top of your branch that I'll
send to you so you can see some of the stuff that I've done. I'm also
not comfortable with adding flags, irq_clr & irq_set into
irq_generic_chip, but I can't quite put my finger on why. :-/ Also,
the api for irq_setup_generic_chip_domain() is enormous. If a context
structure is used, then it would probably be better to populate it
with the configuration so that the API isn't nearly so large.
g.
--
Grant Likely, B.Sc, P.Eng.
Secret Lab Technologies,Ltd.
More information about the linux-arm-kernel
mailing list