From: Suman Anna <s-anna-l0cyMroinI0@public.gmane.org>
To: Barry Song <21cnbao-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: Ohad Ben-Cohen <ohad-Ix1uc/W3ht7QT0dZR+AlfA@public.gmane.org>,
"devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
DL-SHA-WorkGroupLinux
<workgroup.linux-kQvG35nSl+M@public.gmane.org>,
Wei Chen <Wei.Chen-kQvG35nSl+M@public.gmane.org>,
Bjorn Andersson <bjorn-UYDU3/A3LUY@public.gmane.org>,
Barry Song <Baohua.Song-kQvG35nSl+M@public.gmane.org>
Subject: Re: [PATCH v3 3/3] ARM: dts: atlas7: use general dt-binding for hwspinlock
Date: Fri, 5 Jun 2015 12:15:54 -0500 [thread overview]
Message-ID: <5571D94A.4020406@ti.com> (raw)
In-Reply-To: <CAGsJ_4y3YwXfzveWQSHQ9ZuoJbWdJTh3PJjgs0HM6t2w5S1y_w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
On 06/01/2015 12:33 AM, Barry Song wrote:
> 2015-05-29 5:30 GMT+08:00 Suman Anna <s-anna-l0cyMroinI0@public.gmane.org>:
>> Barry,
>>
>> On 05/26/2015 03:28 AM, Barry Song wrote:
>>> From: Wei Chen <Wei.Chen-kQvG35nSl+M@public.gmane.org>
>>>
>>> This patch moves to use generic dt-binding for hwspinlock providers and
>>> clients.
>>> add #hwlock-cells for the provider and hwlocks for clients.
>>>
>>> Cc: Suman Anna <s-anna-l0cyMroinI0@public.gmane.org>
>>> Cc: Bjorn Andersson <bjorn-UYDU3/A3LUY@public.gmane.org>
>>> Signed-off-by: Wei Chen <Wei.Chen-kQvG35nSl+M@public.gmane.org>
>>> Signed-off-by: Barry Song <Baohua.Song-kQvG35nSl+M@public.gmane.org>
>>> ---
>>> arch/arm/boot/dts/atlas7.dtsi | 6 +++---
>>> 1 file changed, 3 insertions(+), 3 deletions(-)
>>>
>>> diff --git a/arch/arm/boot/dts/atlas7.dtsi b/arch/arm/boot/dts/atlas7.dtsi
>>> index a753178..66d3f0e 100644
>>> --- a/arch/arm/boot/dts/atlas7.dtsi
>>> +++ b/arch/arm/boot/dts/atlas7.dtsi
>>> @@ -84,17 +84,17 @@
>>> #address-cells = <1>;
>>> #size-cells = <1>;
>>>
>>> - hwspinlock {
>>> + hwlock: hwspinlock {
>>> compatible = "sirf,hwspinlock";
>>> reg = <0x13240000 0x00010000>;
>>
>> An unrelated question here, why the reg is same for all the child nodes
>> of the parent ipc node? If this is partitioned properly, then the
>> driver can be simplified a bit by using platform_get_resource and
>> devm_ioremap_resource?
>>
>>> -
>>> - num-spinlocks = <30>;
>>> + #hwlock-cells = <1>;
>>> };
>>>
>>> ns_m3_rproc@0 {
>>> compatible = "sirf,ns2m30-rproc";
>>> reg = <0x13240000 0x00010000>;
>>> interrupts = <0 123 0>;
>>> + hwlocks = <&hwlock 0>, <&hwlock 1>;
>>
>> Does this need to be added for the other nodes like ns_m3_rproc@1 as well?
>
> now the hwlock-cells are only added for the nodes who are really using
> it. other users have not used it.
OK, may be split it out then and add these in a subsequent patch with
proper usage description.
regards
Suman
>
>>
>> regards
>> Suman
>>
>>> };
>>>
>>> ns_m3_rproc@1 {
>>>
>>
>
> -barry
>
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2015-06-05 17:15 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-26 8:28 [PATCH v4 1/3] drivers: hwspinlock: add CSR atlas7 implementation Barry Song
[not found] ` <1432628911-18555-1-git-send-email-21cnbao-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2015-05-26 8:28 ` [PATCH v4 2/3] Documentation: dt: add the CSR atlas7 hwspinlock bindings document Barry Song
[not found] ` <1432628911-18555-2-git-send-email-21cnbao-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2015-05-26 17:51 ` Suman Anna
2015-05-28 21:02 ` Bjorn Andersson
2015-05-26 8:28 ` [PATCH v3 3/3] ARM: dts: atlas7: use general dt-binding for hwspinlock Barry Song
[not found] ` <1432628911-18555-3-git-send-email-21cnbao-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2015-05-28 21:30 ` Suman Anna
[not found] ` <5567890D.30906-l0cyMroinI0@public.gmane.org>
2015-05-29 15:50 ` Bjorn Andersson
[not found] ` <CAJAp7OjjzMCGQSRx8c3f5D7uCnWUesZ5Sx8X8=BEjAuAxBqOYw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-06-01 5:31 ` Barry Song
[not found] ` <CAGsJ_4xGHQ4aqrejr7WwQKbn_7Mgfxv7ntxqYVxPzQGNW+KBPw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-06-05 17:16 ` Suman Anna
2015-06-01 5:33 ` Barry Song
[not found] ` <CAGsJ_4y3YwXfzveWQSHQ9ZuoJbWdJTh3PJjgs0HM6t2w5S1y_w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-06-05 17:15 ` Suman Anna [this message]
2015-05-26 17:46 ` [PATCH v4 1/3] drivers: hwspinlock: add CSR atlas7 implementation Suman Anna
2015-05-28 20:55 ` Bjorn Andersson
[not found] ` <CAJAp7Og0GDmh7EcsDedNkRi0StoQZOE+ShP_m2GXAhq9M4UG+Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-06-12 15:20 ` Ohad Ben-Cohen
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=5571D94A.4020406@ti.com \
--to=s-anna-l0cymroini0@public.gmane.org \
--cc=21cnbao-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=Baohua.Song-kQvG35nSl+M@public.gmane.org \
--cc=Wei.Chen-kQvG35nSl+M@public.gmane.org \
--cc=bjorn-UYDU3/A3LUY@public.gmane.org \
--cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=ohad-Ix1uc/W3ht7QT0dZR+AlfA@public.gmane.org \
--cc=workgroup.linux-kQvG35nSl+M@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).