[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAJe_ZhdNjH+eyxMfpAw8Zg1SeZa1qh2ouMnTSress+6Gyr+5qA@mail.gmail.com>
Date: Sat, 2 Aug 2014 13:17:18 +0530
From: Jassi Brar <jaswinder.singh@...aro.org>
To: Mark Brown <broonie@...nel.org>
Cc: Devicetree List <devicetree@...r.kernel.org>,
lkml <linux-kernel@...r.kernel.org>,
"ks.giri@...sung.com" <ks.giri@...sung.com>,
Arnd Bergmann <arnd@...db.de>,
"ijc+devicetree@...lion.org.uk" <ijc+devicetree@...lion.org.uk>,
Mark Rutland <mark.rutland@....com>,
Rob Herring <robh+dt@...nel.org>,
Pawel Moll <pawel.moll@....com>,
Courtney Cavin <courtney.cavin@...ymobile.com>,
Matt Porter <mporter@...aro.org>,
Craig McGeachie <slapdau@...oo.com.au>,
LeyFoon Tan <lftan.linux@...il.com>,
Loic Pallardy <loic.pallardy@...com>,
"Anna, Suman" <s-anna@...com>,
Ashwin Chaugule <ashwin.chaugule@...aro.org>,
Bjorn Andersson <bjorn@...o.se>,
Patch Tracking <patches@...aro.org>,
Mollie Wu <mollie.wu@...aro.org>,
Tetsuya Takinishi <t.takinishi@...fujitsu.com>,
Kevin Hilman <khilman@...aro.org>,
Lee Jones <lee.jones@...aro.org>,
Andy Green <andy.green@...aro.org>
Subject: Re: [PATCHv10 4/4] dt: mailbox: add generic bindings
On 2 August 2014 00:13, Mark Brown <broonie@...nel.org> wrote:
> On Fri, Aug 01, 2014 at 06:02:45PM +0530, Jassi Brar wrote:
>
>> +Optional property:
>> +- mbox-names: List of identifier strings for each mailbox channel
>> + required by the client. The use of this property
>> + is discouraged in favor of using index in list of
>> + 'mboxes' while requesting a mailbox.
>
> Can I suggest that if we do want to avoid strings for some reason (it's
> not obvious to me why)
>
The string and index are both to be taken from DT node of client.
pwr_cntrl: power {
...
mbox-names = "pwr-ctrl", "rpc";
mboxes = <&mailbox 0
&mailbox 1>;
};
The xlate() will map string onto index. So rather than the client
driver specify, say, "rpc" while requesting mailbox channel, it can
directly specify index 1.
> then we include a recommendation to provide
> defines in a header file in order to improve legibility. That's pretty
> minor, though.
>
Sorry I don't understand.
> Reviewed-by: Mark Brown <broonie@...aro.org>
>
Thanks a lot!
-Jassi
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists