From: Meador Inge <meador_inge@mentor.com>
To: Scott Wood <scottwood@freescale.com>
Cc: openmcapi-dev@googlegroups.com,
Hollis Blanchard <hollis_blanchard@mentor.com>,
devicetree-discuss@lists.ozlabs.org,
linuxppc-dev@lists.ozlabs.org
Subject: Re: [PATCH 1/2] powerpc: document the FSL MPIC message register binding
Date: Tue, 19 Apr 2011 13:26:26 -0500 [thread overview]
Message-ID: <4DADD3D2.6070805@mentor.com> (raw)
In-Reply-To: <20110419125214.560f4b99@schlenkerla.am.freescale.net>
On 04/19/2011 12:52 PM, Scott Wood wrote:
> On Tue, 19 Apr 2011 11:59:34 -0500
> Meador Inge <meador_inge@mentor.com> wrote:
>
>> + - interrupt-parent: Specifies the interrupt parent of the message register
>> + block. The type shall be a <phandle> and the value of that <phandle>
>> + shall point to the interrupt parent.
>
> interrupt-parent is not required; it can be inherited from an ancestor. In
> any case, this description doesn't say anything specifically about MPIC
> message nodes.
Removed.
>> The default value shall be
>> + all a string of consecutive ones where the length of the run is equal
>> + to the number of registers in the block. For example, a block with
>> + four registers shall default to 0xF.
>
> Could be more simply worded as, "If not present, all message registers in
> the group are available."
That is much better.
>> +Required alias:
>> +
>> + In order for a message register block to be discovered it *must* define
>> + an alias in the 'aliases' node.
>
> I think the "in order to be discovered" statement is specific to your use
> case.
>
>> Aliases are of the form 'msgr-block<n>',
>> + where <n> is an integer specifying the block's number. Numbers shall start
>> + at 0.
>
> The hw docs refer to "group A" and "group B", not "block 0" and "block 1".
>
> Plus, I'd put "mpic-" in the alias name.
Are you suggesting that the alias should be called: 'mpic-groupA',
'mpic-groupB', 'mpic-groupC', etc... ? Or just that I should use the terminology
group instead of block where discussing things in the binding?
>> +Example:
>> +
>> + /* The aliases needed to define an order on the message register blocks.
>> + */
>> + aliases {
>> + msgr-block0 = &msgr_block0;
>> + msgr-block1 = &msgr_block1;
>> + };
>> +
>> + msgr_block0: msgr-block@41400 {
>> + compatible = "fsl,mpic-v3.1-msgr";
>> + reg = <0x41400 0x200>;
>> + // Message registers 0 and 3 in this block can receive interrupts on
>> + // sources 0xb0 and 0xb2, respectively.
>> + interrupts = <0xb0 2 0xb2 2>;
>> + msg-receive-mask = <0x5>;
>> + interrupt-parent = <&mpic>;
>> + };
>
> A mask of 0x5 specifies message registers 0 and 2 (as do interrupts 0xb0
> and 0xb2), not 0 and 3.
>
Fixed. Thanks.
--
Meador Inge | meador_inge AT mentor.com
Mentor Embedded | http://www.mentor.com/embedded-software
next prev parent reply other threads:[~2011-04-19 18:26 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-19 16:59 [PATCH 0/2] powerpc: define and implement MPIC message register support Meador Inge
2011-04-19 16:59 ` [PATCH 1/2] powerpc: document the FSL MPIC message register binding Meador Inge
2011-04-19 17:52 ` Scott Wood
2011-04-19 18:26 ` Meador Inge [this message]
2011-04-19 18:33 ` Scott Wood
2011-04-21 19:26 ` Meador Inge
2011-04-21 19:35 ` Scott Wood
2011-04-19 16:59 ` [PATCH 2/2] powerpc: add support for MPIC message register API Meador Inge
2011-04-29 5:00 ` Kushwaha Prabhakar-B32579
2011-04-29 16:54 ` Hollis Blanchard
2011-04-29 17:27 ` Kushwaha Prabhakar-B32579
2011-04-29 17:30 ` Scott Wood
2011-05-02 3:41 ` Kushwaha Prabhakar-B32579
2011-05-02 16:03 ` Hollis Blanchard
2011-05-03 15:19 ` Scott Wood
2011-05-05 21:41 ` Meador Inge
2011-05-06 19:29 ` Scott Wood
2011-05-06 23:51 ` Meador Inge
-- strict thread matches above, loose matches on Subject: below --
2012-02-17 2:49 [PATCH 1/2] powerpc: document the FSL MPIC message register binding Jia Hongtao
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=4DADD3D2.6070805@mentor.com \
--to=meador_inge@mentor.com \
--cc=devicetree-discuss@lists.ozlabs.org \
--cc=hollis_blanchard@mentor.com \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=openmcapi-dev@googlegroups.com \
--cc=scottwood@freescale.com \
/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).