linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PULL] generic irq chip and pl061 irqdomain support
@ 2012-02-14 22:27 Rob Herring
  2012-03-05  3:50 ` Rob Herring
  0 siblings, 1 reply; 8+ messages in thread
From: Rob Herring @ 2012-02-14 22:27 UTC (permalink / raw)
  To: Grant Likely; +Cc: linux-arm-kernel, linux-kernel

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.


The following changes since commit 98ecf5260207e45ad587a5dc16c39f5ede467a45:

  irq_domain/microblaze: Convert microblaze to use irq_domains
(2012-02-05 23:02:26 -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(-)

Rob

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PULL] generic irq chip and pl061 irqdomain support
  2012-02-14 22:27 [PULL] generic irq chip and pl061 irqdomain support Rob Herring
@ 2012-03-05  3:50 ` Rob Herring
  2012-03-13 22:54   ` Rob Herring
  0 siblings, 1 reply; 8+ messages in thread
From: Rob Herring @ 2012-03-05  3:50 UTC (permalink / raw)
  To: Grant Likely; +Cc: linux-arm-kernel, linux-kernel

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(-)

Rob

> 
> The following changes since commit 98ecf5260207e45ad587a5dc16c39f5ede467a45:
> 
>   irq_domain/microblaze: Convert microblaze to use irq_domains
> (2012-02-05 23:02:26 -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(-)
> 
> Rob


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PULL] generic irq chip and pl061 irqdomain support
  2012-03-05  3:50 ` Rob Herring
@ 2012-03-13 22:54   ` Rob Herring
  2012-03-13 23:18     ` Grant Likely
  0 siblings, 1 reply; 8+ messages in thread
From: Rob Herring @ 2012-03-13 22:54 UTC (permalink / raw)
  To: Grant Likely; +Cc: linux-arm-kernel, linux-kernel, Shawn Guo

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...

Rob

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PULL] generic irq chip and pl061 irqdomain support
  2012-03-13 22:54   ` Rob Herring
@ 2012-03-13 23:18     ` Grant Likely
  2012-04-02 13:03       ` Rob Herring
  0 siblings, 1 reply; 8+ messages in thread
From: Grant Likely @ 2012-03-13 23:18 UTC (permalink / raw)
  To: Rob Herring; +Cc: linux-arm-kernel, linux-kernel, Shawn Guo

On Tue, 13 Mar 2012 17:54:47 -0500, Rob Herring <robherring2@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.

g.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PULL] generic irq chip and pl061 irqdomain support
  2012-03-13 23:18     ` Grant Likely
@ 2012-04-02 13:03       ` Rob Herring
  2012-04-07  4:11         ` Grant Likely
  0 siblings, 1 reply; 8+ messages in thread
From: Rob Herring @ 2012-04-02 13:03 UTC (permalink / raw)
  To: Grant Likely; +Cc: linux-arm-kernel, linux-kernel, Shawn Guo

Grant,

On 03/13/2012 06:18 PM, Grant Likely wrote:
> On Tue, 13 Mar 2012 17:54:47 -0500, Rob Herring <robherring2@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.

Rob


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PULL] generic irq chip and pl061 irqdomain support
  2012-04-02 13:03       ` Rob Herring
@ 2012-04-07  4:11         ` Grant Likely
  2012-04-11  0:54           ` Jason Cooper
  2012-04-11 14:47           ` Rob Herring
  0 siblings, 2 replies; 8+ messages in thread
From: Grant Likely @ 2012-04-07  4:11 UTC (permalink / raw)
  To: Rob Herring; +Cc: linux-arm-kernel, linux-kernel, Shawn Guo

On Mon, 02 Apr 2012 08:03:47 -0500, Rob Herring <robherring2@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@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.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PULL] generic irq chip and pl061 irqdomain support
  2012-04-07  4:11         ` Grant Likely
@ 2012-04-11  0:54           ` Jason Cooper
  2012-04-11 14:47           ` Rob Herring
  1 sibling, 0 replies; 8+ messages in thread
From: Jason Cooper @ 2012-04-11  0:54 UTC (permalink / raw)
  To: Grant Likely; +Cc: Rob Herring, Shawn Guo, linux-kernel, linux-arm-kernel

On Fri, Apr 06, 2012 at 09:11:55PM -0700, Grant Likely wrote:
> On Mon, 02 Apr 2012 08:03:47 -0500, Rob Herring <robherring2@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@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 have several patches for kirkwood/orion which depend on this.  I'd be
lying if I said they were ready for submission, but getting this merged
would sure help move things along.  ;-)

thx,

Jason.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PULL] generic irq chip and pl061 irqdomain support
  2012-04-07  4:11         ` Grant Likely
  2012-04-11  0:54           ` Jason Cooper
@ 2012-04-11 14:47           ` Rob Herring
  1 sibling, 0 replies; 8+ messages in thread
From: Rob Herring @ 2012-04-11 14:47 UTC (permalink / raw)
  To: Grant Likely; +Cc: linux-arm-kernel, linux-kernel, Shawn Guo

On 04/06/2012 11:11 PM, Grant Likely wrote:
> On Mon, 02 Apr 2012 08:03:47 -0500, Rob Herring <robherring2@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@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.

There weren't any users in next because this was not in next for very
long. iMX had support ready to go. This (or at least some parts) is
needed to convert any existing users of generic_chip over to domains and
DT whether we add domain support directly or not.

> 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,

I'm not adding those. The timing of the irq handler setup is different
with a domain, so I have to store those for later. I think this also
makes generic_chip incompatible with domains as it now exists.

> 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.

This is largely an artifact of the existing generic_chip api which has
a large number of parameters, but they are spread across 2 functions.

There's a couple of simple things I could do:
- drop name and use node->name instead. If node is null then the
irq_chip will have no name, but this appears to be optional.
- make the callback fill in irq_base, reg_base, flags, irq_clr, irq_set
and private
- make the common case an inline wrapper. All but 1 user sets num_ct to
1 for example.

Rob


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-04-11 14:47 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-14 22:27 [PULL] generic irq chip and pl061 irqdomain support Rob Herring
2012-03-05  3:50 ` Rob Herring
2012-03-13 22:54   ` Rob Herring
2012-03-13 23:18     ` Grant Likely
2012-04-02 13:03       ` Rob Herring
2012-04-07  4:11         ` Grant Likely
2012-04-11  0:54           ` Jason Cooper
2012-04-11 14:47           ` Rob Herring

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).