From: Segher Boessenkool <segher@kernel.crashing.org>
To: Stuart Yoder <b08248@freescale.com>
Cc: linuxppc-dev@ozlabs.org, paulus@samba.org
Subject: Re: [RFC] powerpc: Document new property called interrupt-parents
Date: Wed, 28 Feb 2007 00:40:31 +0100 [thread overview]
Message-ID: <6d55dd0f38d35c0b938acf26abff62ec@kernel.crashing.org> (raw)
In-Reply-To: <200702272254.l1RMsjt2030709@ld0164-tx32.am.freescale.net>
> +For devices that generate interrupts to multiple interrupt
> +controllers, the interrupt-parent representation
> +is not sufficient because it only describes a single
> +interrupt parent. The 'interrupt-parents' property should be used
> +to represent this (note the plural in the property name).
s/should be used/can be used/
> + pic0: pic@700 {
> + interrupt-controller;
> + #address-cells = <0>;
> + #interrupt-cells = <2>;
> + reg = <700 100>;
> + device_type = "open-pic";
> + };
I still say the #address-cells should be removed.
> + ethernet@25000 {
> + #address-cells = <1>;
> + #size-cells = <0>;
> + device_type = "network";
> + model = "fsl,TSEC";
> + compatible = "gianfar";
> + reg = <25000 1000>;
> + mac-address = [ 00 E0 0C 00 73 01 ];
> + interrupt-parents = <&pic0 &pic0 &pic1>;
> + interrupts = <13 3 14 3 18 3>;
> + phy-handle = <2452001>;
> + };
Maybe write this like
ethernet@25000 {
device_type = "network";
reg = <25000 1000>;
...
interrupt-parents = <&pic0 &pic0 &pic1>;
interrupts = <13 3 14 3 18 3>;
};
to make the example more readable? And some spacing in
the properties, so maybe
ethernet@25000 {
device_type = "network";
reg = <25000 1000>;
...
interrupt-parents = <&pic0 &pic0 &pic1>;
interrupts = <13 3 14 3 18 3 >;
};
> +Note: each interrupt parent in the interrupt-parents array can
> +potentially specify a different value for #interrupt-cells. The
> number
> +of #interrupt-cells for each parent must be determined to correctly
> +parser the interrupts property.
s/parser/parse/
Segher
next prev parent reply other threads:[~2007-02-27 23:41 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-27 22:54 [RFC] powerpc: Document new property called interrupt-parents Stuart Yoder
2007-02-27 23:40 ` Segher Boessenkool [this message]
2007-02-28 0:56 ` David Gibson
2007-02-28 1:09 ` Segher Boessenkool
2007-02-28 15:56 ` Yoder Stuart-B08248
2007-02-28 18:54 ` Segher Boessenkool
2007-02-28 23:38 ` David Gibson
2007-03-01 1:55 ` Segher Boessenkool
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=6d55dd0f38d35c0b938acf26abff62ec@kernel.crashing.org \
--to=segher@kernel.crashing.org \
--cc=b08248@freescale.com \
--cc=linuxppc-dev@ozlabs.org \
--cc=paulus@samba.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).