From: Scott Wood <scottwood@freescale.com>
To: Kenny Ho <kho@belairnetworks.com>
Cc: linuxppc-dev@lists.ozlabs.org
Subject: Re: Question on setting up external interrupt for P1020 (MPC8xxx) with device tree
Date: Fri, 11 Feb 2011 16:19:20 -0600 [thread overview]
Message-ID: <20110211161920.3c44a678@udp111988uds> (raw)
In-Reply-To: <92C536451C241244A14F3001819BF6688A503C@bnott05.belairnetworks.com>
On Fri, 11 Feb 2011 17:15:47 -0500
Kenny Ho <kho@belairnetworks.com> wrote:
> Thanks Scott.
>
> Do you know the logic of the hwirq <-> virq mapping?
It's dynamic.
> When I was digging into the GPIO interrupt, the hwirq seems to be the same as the virq
The allocator tries that if it's available, but if that virq is already
taken, or is in the legacy ISA region under 16, you'll get a different
number.
> (both are 47 which is 16 (external interrupt) + 31 (internal interrupt).
> If I want to use external interrupt 7 and 8, should the virq also be 7
> and 8?
No.
> For some reason I am getting 41 for virq... may be I am still
> doing something wrong.
It's correct. Pass what you receive into request_irq().
-Scott
prev parent reply other threads:[~2011-02-11 22:19 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-11 19:07 Question on setting up external interrupt for P1020 (MPC8xxx) with device tree Kenny Ho
2011-02-11 21:56 ` Scott Wood
2011-02-11 22:15 ` Kenny Ho
2011-02-11 22:19 ` Scott Wood [this message]
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=20110211161920.3c44a678@udp111988uds \
--to=scottwood@freescale.com \
--cc=kho@belairnetworks.com \
--cc=linuxppc-dev@lists.ozlabs.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).