From: robherring2@gmail.com (Rob Herring)
To: linux-arm-kernel@lists.infradead.org
Subject: [RFCv2 03/14] irq_domain: Make irq_domain structure match powerpc's irq_host
Date: Tue, 24 Jan 2012 15:38:37 -0600 [thread overview]
Message-ID: <4F1F24DD.5030904@gmail.com> (raw)
In-Reply-To: <1327352870-14687-4-git-send-email-grant.likely@secretlab.ca>
On 01/23/2012 03:07 PM, Grant Likely wrote:
> Part of the series to unify the irq remapping mechanisms in the
> kernel. A 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 <grant.likely@secretlab.ca>
> ---
> arch/arm/common/gic.c | 14 ++++----
> include/linux/irqdomain.h | 84 ++++++++++++++++++++++++++++++++++-----------
> kernel/irq/irqdomain.c | 14 ++++----
> 3 files changed, 78 insertions(+), 34 deletions(-)
>
snip...
> @@ -126,7 +126,7 @@ void irq_dispose_mapping(unsigned int irq)
> }
> EXPORT_SYMBOL_GPL(irq_dispose_mapping);
>
> -int irq_domain_simple_dt_translate(struct irq_domain *d,
> +int irq_domain_simple_xlate(struct irq_domain *d,
> struct device_node *controller,
> const u32 *intspec, unsigned int intsize,
> unsigned long *out_hwirq, 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 chip.
Rob
> @@ -181,7 +181,7 @@ EXPORT_SYMBOL_GPL(irq_domain_generate_simple);
>
> struct irq_domain_ops irq_domain_simple_ops = {
> #ifdef CONFIG_OF_IRQ
> - .dt_translate = irq_domain_simple_dt_translate,
> + .xlate = irq_domain_simple_xlate,
> #endif /* CONFIG_OF_IRQ */
> };
> EXPORT_SYMBOL_GPL(irq_domain_simple_ops);
next parent reply other threads:[~2012-01-24 21:38 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1327352870-14687-1-git-send-email-grant.likely@secretlab.ca>
[not found] ` <1327352870-14687-4-git-send-email-grant.likely@secretlab.ca>
2012-01-24 21:38 ` Rob Herring [this message]
2012-01-24 22:08 ` [RFCv2 03/14] irq_domain: Make irq_domain structure match powerpc's irq_host Grant Likely
2012-01-24 22:11 ` Rob Herring
[not found] ` <1327352870-14687-14-git-send-email-grant.likely@secretlab.ca>
2012-01-24 22:10 ` [RFCv2 13/14] irq_domain: Remove 'new' irq_domain in favour of the ppc one Rob Herring
2012-01-25 0:26 ` Grant Likely
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=4F1F24DD.5030904@gmail.com \
--to=robherring2@gmail.com \
--cc=linux-arm-kernel@lists.infradead.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;
as well as URLs for NNTP newsgroup(s).