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 16:11:49 -0600 [thread overview]
Message-ID: <4F1F2CA5.1070701@gmail.com> (raw)
In-Reply-To: <CACxGe6sO-3LHbimBGaWFY98QtK5tiK8uiDodmgO1kVQoi4jDTQ@mail.gmail.com>
On 01/24/2012 04:08 PM, Grant Likely wrote:
> On Tue, Jan 24, 2012 at 2:38 PM, Rob Herring <robherring2@gmail.com> wrote:
>> 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.
>
> 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.
>
Okay.
Rob
next prev parent reply other threads:[~2012-01-24 22:11 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 ` [RFCv2 03/14] irq_domain: Make irq_domain structure match powerpc's irq_host Rob Herring
2012-01-24 22:08 ` Grant Likely
2012-01-24 22:11 ` Rob Herring [this message]
[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=4F1F2CA5.1070701@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).