From: "jonsmirl-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" <jonsmirl-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: Sethi Varun-B16395
<B16395-KZfg59tc24xl57MIdRCFDg@public.gmane.org>,
"jonsmirl-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org"
<jonsmirl-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
devicetree-discuss
<devicetree-discuss-mnsaURCQ41sdnm+yROfE0A@public.gmane.org>
Subject: Re: Two different interrupt-parents
Date: Mon, 16 Apr 2012 09:55:09 -0400 [thread overview]
Message-ID: <CAKON4OyLsh2Us4wrx3Wh+Uw2sT2sMTvgkYahL5reztL906wtWA@mail.gmail.com> (raw)
In-Reply-To: <20120416045308.GH4625-MK4v0fQdeXQXU02nzanrWNbf9cGiqdzd@public.gmane.org>
On Mon, Apr 16, 2012 at 12:53 AM, David Gibson
<david-xT8FGy+AXnRB3Ne2BGzF6laj5H9X9Tb+@public.gmane.org> wrote:
> On Mon, Apr 16, 2012 at 04:14:25AM +0000, Sethi Varun-B16395 wrote:
>> You can use a 4 cell interrupt specifier (we use that in case of embedded power architecture platforms)
>> - First cell corresponds to one of the four cascade lines (coming from the cascaded pic)
>> - Second cell provides the interrupt sense information
>> - Third one tells the interrupt subtype (in your case should be the cascade power interrupt type)
>> - Fourth cell communicates the interrupt number corresponding to the cascaded pic.
>>
>> There would be a single interrupt parent, which is the system interrupt controller. You would have
>> to translate the four cell interrupt specifier and also add cascaded interrupt handling
>> for the shared interrupt line.
>
> No, don't do that.
>
> Use the interrupt-map technique described in the thread that got
> linked earlier.
If interrupts had syntax like GPIOs this problem wouldn't exist.
>
> --
> David Gibson | I'll have my music baroque, and my code
> david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
> | _way_ _around_!
> http://www.ozlabs.org/~dgibson
--
Jon Smirl
jonsmirl-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
next prev parent reply other threads:[~2012-04-16 13:55 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-15 2:57 Two different interrupt-parents jonsmirl-Re5JQEeQqe8AvxtiuMwx3w
[not found] ` <CAKON4OwAix9D61kp9mDq0WVvthDKzm=FFz2AoFQWe1yqJJgf6A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-04-15 4:23 ` Thomas Abraham
2012-04-16 3:40 ` Sethi Varun-B16395
[not found] ` <C5ECD7A89D1DC44195F34B25E172658D0CE077-RL0Hj/+nBVDYdknt8GnhQq4g8xLGJsHaLnY5E4hWTkheoWH0uzbU5w@public.gmane.org>
2012-04-16 4:02 ` jonsmirl-Re5JQEeQqe8AvxtiuMwx3w
[not found] ` <CAKON4Ox9Bi=HYXU_eOjff0aaSuqPEbqbonm1VaKYOcSpx5-WfA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-04-16 4:14 ` Sethi Varun-B16395
[not found] ` <C5ECD7A89D1DC44195F34B25E172658D0CE0E6-RL0Hj/+nBVDYdknt8GnhQq4g8xLGJsHaLnY5E4hWTkheoWH0uzbU5w@public.gmane.org>
2012-04-16 4:53 ` David Gibson
[not found] ` <20120416045308.GH4625-MK4v0fQdeXQXU02nzanrWNbf9cGiqdzd@public.gmane.org>
2012-04-16 13:55 ` jonsmirl-Re5JQEeQqe8AvxtiuMwx3w [this message]
[not found] ` <CAKON4OyLsh2Us4wrx3Wh+Uw2sT2sMTvgkYahL5reztL906wtWA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-04-17 0:55 ` David Gibson
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=CAKON4OyLsh2Us4wrx3Wh+Uw2sT2sMTvgkYahL5reztL906wtWA@mail.gmail.com \
--to=jonsmirl-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=B16395-KZfg59tc24xl57MIdRCFDg@public.gmane.org \
--cc=devicetree-discuss-mnsaURCQ41sdnm+yROfE0A@public.gmane.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).