Thread (30 messages) 30 messages, 6 authors, 2012-01-29

Re: [RFCv2 03/14] irq_domain: Make irq_domain structure match powerpc's irq_host

From: Grant Likely <hidden>
Date: 2012-01-24 22:09:03
Also in: linux-arm-kernel, linux-devicetree, lkml

On Tue, Jan 24, 2012 at 2:38 PM, Rob Herring [off-list ref] wrote:
On 01/23/2012 03:07 PM, Grant Likely wrote:
quoted
Part of the series to unify the irq remapping mechanisms in the
kernel. =A0A follow up patch will copy the powerpc implementation into
kernel/irq/irqdomain.c, which will be a lot easier if the structures
are identical.

Where they differ, I've chose to use the powerpc names since there is
a lot more code using those names.

Signed-off-by: Grant Likely <redacted>
---
=A0arch/arm/common/gic.c =A0 =A0 | =A0 14 ++++----
=A0include/linux/irqdomain.h | =A0 84 ++++++++++++++++++++++++++++++++++=
-----------
quoted
=A0kernel/irq/irqdomain.c =A0 =A0| =A0 14 ++++----
=A03 files changed, 78 insertions(+), 34 deletions(-)
snip...
quoted
@@ -126,7 +126,7 @@ void irq_dispose_mapping(unsigned int irq)
=A0}
=A0EXPORT_SYMBOL_GPL(irq_dispose_mapping);

-int irq_domain_simple_dt_translate(struct irq_domain *d,
+int irq_domain_simple_xlate(struct irq_domain *d,
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 struct device_node *=
controller,
quoted
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 const u32 *intspec, =
unsigned int intsize,
quoted
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 unsigned long *out_h=
wirq, unsigned int *out_type)
This needs a declaration in irqdomain.h (as well as EXPORT?). There
could be others as well, but this is the one I'm using for generic irq ch=
ip.

Fine by me.  I'll add that as a follow-on patch since nothing in-tree
currently depends on that.  It will be in the next version of the
patch series.  Also, are you okay if I rename it to
irq_domain_generic_xlate()?  Simple doesn't really describe it well,
and it can be used for any interrupt controller implementing the
binding we've settled on as recommended for new device support.

g.
Rob
quoted
@@ -181,7 +181,7 @@ EXPORT_SYMBOL_GPL(irq_domain_generate_simple);
=A0struct irq_domain_ops irq_domain_simple_ops =3D {
=A0#ifdef CONFIG_OF_IRQ
- =A0 =A0 .dt_translate =3D irq_domain_simple_dt_translate,
+ =A0 =A0 .xlate =3D irq_domain_simple_xlate,
=A0#endif /* CONFIG_OF_IRQ */
=A0};
=A0EXPORT_SYMBOL_GPL(irq_domain_simple_ops);


--=20
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help