Re: [PATCH 4/6] dt: generalize irq_of_create_mapping()

2011-05-04 Thread Benjamin Herrenschmidt
On Wed, 2011-05-04 at 10:05 -0600, Grant Likely wrote: > > I think you are going the wrong way around. > > > > First thing first, is to make the irq domain / mapping API generic > > without the OF bits. > > > > IE. move the IRQ domain generically, get rid of irq_map by putting > the > > domain pt

Re: [PATCH 4/6] dt: generalize irq_of_create_mapping()

2011-05-04 Thread Grant Likely
On Tue, May 03, 2011 at 11:50:22AM +1000, Benjamin Herrenschmidt wrote: > On Thu, 2011-04-28 at 14:02 -0600, Grant Likely wrote: > > This patch creates a common implementation of irq_of_create_mapping() > > and factors out the interrupt domain translation code from powerpc to > > make it available

Re: [PATCH 4/6] dt: generalize irq_of_create_mapping()

2011-05-02 Thread Benjamin Herrenschmidt
On Thu, 2011-04-28 at 14:02 -0600, Grant Likely wrote: > This patch creates a common implementation of irq_of_create_mapping() > and factors out the interrupt domain translation code from powerpc to > make it available for all architectures. I think you are going the wrong way around. First thing

[PATCH 4/6] dt: generalize irq_of_create_mapping()

2011-04-28 Thread Grant Likely
This patch creates a common implementation of irq_of_create_mapping() and factors out the interrupt domain translation code from powerpc to make it available for all architectures. It creates a new structure, struct of_irq_domain, which can be embedded into the private data structure of an interru