All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Cousson, Benoit" <b-cousson@ti.com>
To: Arnd Bergmann <arnd@arndb.de>
Cc: Ohad Ben-Cohen <ohad@wizery.com>,
	"Hilman, Kevin" <khilman@ti.com>,
	Mathieu Poirier <mathieu.poirier@linaro.org>,
	"tony@atomide.com" <tony@atomide.com>,
	"G, Manjunath Kondaiah" <manjugk@ti.com>,
	"devicetree-discuss@lists.ozlabs.org"
	<devicetree-discuss@lists.ozlabs.org>,
	"grant.likely@secretlab.ca" <grant.likely@secretlab.ca>,
	"linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>,
	"linux-arm-kernel@lists.infradead.org"
	<linux-arm-kernel@lists.infradead.org>
Subject: Re: [RFC PATCH 06/10] hwspinlock: OMAP4: Add spinlock support in DT
Date: Thu, 8 Sep 2011 17:34:51 +0200	[thread overview]
Message-ID: <4E68E09B.4050006@ti.com> (raw)
In-Reply-To: <201109081647.55377.arnd@arndb.de>

On 9/8/2011 4:47 PM, Arnd Bergmann wrote:
> On Thursday 08 September 2011, Ohad Ben-Cohen wrote:
>> On Thu, Sep 8, 2011 at 11:07 AM, Cousson, Benoit<b-cousson@ti.com>  wrote:
>>> The (small) issue for my point of view is that the #hwspinlock is already
>>> encoded in the IP itself. So adding a baseid directly in DT will look like
>>> duplicating indirectly something that is already there in the HW.
>>> That being said, since we cannot rely on the order, we will not be able to
>>> get the proper baseid until the driver probe every hwspinlock devices :-(
>>> So baseid might be a easier choice.
>>
>> Sounds good. Thanks a lot !
>
> I think a number would work here but is not optimal for the device tree
> representation. I think a better binding would be to encode it like
> interrupt numbers, where every device that uses a hwspinlock will describe
> that as a combination of phandle to the hwspinlock controller and
> identifier to be used by that controller, e.g.
>
> 	spinlock1 {
> 		compatible = "ti,omap-spinlock";
> 		regs = ...
> 		interrupts =<42>;
> 		interrupt-parent =&irq-controller;
> 	};
>
> 	dsp {
> 		compatible = ...
> 		regs = ...
> 		spinlocks =<23>; // local number withing&spinlock1;
> 		spinlock-controller =&spinlock1;
> 	};

OK, this is indeed much more aligned with the current practice, and what 
DMA should do as well.

Practically speaking, that change will go beyond the original scope of 
that patch that was just adding the DT support based on the existing 
functionality.

Is it OK to handle that improvement in a further patch / series?

Thanks,
Benoit

WARNING: multiple messages have this Message-ID (diff)
From: b-cousson@ti.com (Cousson, Benoit)
To: linux-arm-kernel@lists.infradead.org
Subject: [RFC PATCH 06/10] hwspinlock: OMAP4: Add spinlock support in DT
Date: Thu, 8 Sep 2011 17:34:51 +0200	[thread overview]
Message-ID: <4E68E09B.4050006@ti.com> (raw)
In-Reply-To: <201109081647.55377.arnd@arndb.de>

On 9/8/2011 4:47 PM, Arnd Bergmann wrote:
> On Thursday 08 September 2011, Ohad Ben-Cohen wrote:
>> On Thu, Sep 8, 2011 at 11:07 AM, Cousson, Benoit<b-cousson@ti.com>  wrote:
>>> The (small) issue for my point of view is that the #hwspinlock is already
>>> encoded in the IP itself. So adding a baseid directly in DT will look like
>>> duplicating indirectly something that is already there in the HW.
>>> That being said, since we cannot rely on the order, we will not be able to
>>> get the proper baseid until the driver probe every hwspinlock devices :-(
>>> So baseid might be a easier choice.
>>
>> Sounds good. Thanks a lot !
>
> I think a number would work here but is not optimal for the device tree
> representation. I think a better binding would be to encode it like
> interrupt numbers, where every device that uses a hwspinlock will describe
> that as a combination of phandle to the hwspinlock controller and
> identifier to be used by that controller, e.g.
>
> 	spinlock1 {
> 		compatible = "ti,omap-spinlock";
> 		regs = ...
> 		interrupts =<42>;
> 		interrupt-parent =&irq-controller;
> 	};
>
> 	dsp {
> 		compatible = ...
> 		regs = ...
> 		spinlocks =<23>; // local number withing&spinlock1;
> 		spinlock-controller =&spinlock1;
> 	};

OK, this is indeed much more aligned with the current practice, and what 
DMA should do as well.

Practically speaking, that change will go beyond the original scope of 
that patch that was just adding the DT support based on the existing 
functionality.

Is it OK to handle that improvement in a further patch / series?

Thanks,
Benoit

  reply	other threads:[~2011-09-08 15:34 UTC|newest]

Thread overview: 84+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-24 13:09 [RFC PATCH 00/10] OMAP: Add DT support for early init OMAP4 devices Benoit Cousson
2011-08-24 13:09 ` Benoit Cousson
     [not found] ` <1314191356-10963-1-git-send-email-b-cousson-l0cyMroinI0@public.gmane.org>
2011-08-24 13:09   ` [RFC PATCH 01/10] OMAP2+: l3-noc: Add support for device-tree Benoit Cousson
2011-08-24 13:09     ` Benoit Cousson
2011-09-08 18:01     ` Grant Likely
2011-09-08 18:01       ` Grant Likely
     [not found]       ` <20110908180148.GA2967-e0URQFbLeQY2iJbIjFUEsiwD8/FfD2ys@public.gmane.org>
2011-09-08 21:59         ` Cousson, Benoit
2011-09-08 21:59           ` Cousson, Benoit
2011-09-08 23:35           ` Grant Likely
2011-09-08 23:35             ` Grant Likely
2011-08-24 13:09   ` [RFC PATCH 02/10] arm/dts: OMAP4: Add a main ocp entry bound to l3-noc driver Benoit Cousson
2011-08-24 13:09     ` Benoit Cousson
     [not found]     ` <1314191356-10963-3-git-send-email-b-cousson-l0cyMroinI0@public.gmane.org>
2011-09-08 18:03       ` Grant Likely
2011-09-08 18:03         ` Grant Likely
2011-09-09  0:10         ` Cousson, Benoit
2011-09-09  0:10           ` Cousson, Benoit
2011-09-09  2:41           ` Grant Likely
2011-09-09  2:41             ` Grant Likely
2011-08-24 13:09   ` [RFC PATCH 03/10] documentation/dt: Add l3-noc bindings Benoit Cousson
2011-08-24 13:09     ` Benoit Cousson
2011-09-08 18:06     ` Grant Likely
2011-09-08 18:06       ` Grant Likely
2011-09-09  0:18       ` Cousson, Benoit
2011-09-09  0:18         ` Cousson, Benoit
2011-08-24 13:09   ` [RFC PATCH 06/10] hwspinlock: OMAP4: Add spinlock support in DT Benoit Cousson
2011-08-24 13:09     ` Benoit Cousson
2011-09-07 19:58     ` Ohad Ben-Cohen
2011-09-07 19:58       ` Ohad Ben-Cohen
2011-09-08  7:14       ` Cousson, Benoit
2011-09-08  7:14         ` Cousson, Benoit
2011-09-08  7:56         ` Ohad Ben-Cohen
2011-09-08  7:56           ` Ohad Ben-Cohen
2011-09-08  8:07           ` Cousson, Benoit
2011-09-08  8:07             ` Cousson, Benoit
2011-09-08  8:11             ` Ohad Ben-Cohen
2011-09-08  8:11               ` Ohad Ben-Cohen
2011-09-08 14:47               ` Arnd Bergmann
2011-09-08 14:47                 ` Arnd Bergmann
2011-09-08 15:34                 ` Cousson, Benoit [this message]
2011-09-08 15:34                   ` Cousson, Benoit
     [not found]                   ` <4E68E09B.4050006-l0cyMroinI0@public.gmane.org>
2011-09-08 16:03                     ` Arnd Bergmann
2011-09-08 16:03                       ` Arnd Bergmann
     [not found]                 ` <201109081647.55377.arnd-r2nGTMty4D4@public.gmane.org>
2011-09-08 16:36                   ` Ohad Ben-Cohen
2011-09-08 16:36                     ` Ohad Ben-Cohen
2011-09-09 12:58                     ` Arnd Bergmann
2011-09-09 12:58                       ` Arnd Bergmann
2011-09-11  7:57                       ` Ohad Ben-Cohen
2011-09-11  7:57                         ` Ohad Ben-Cohen
2011-09-12 14:32                         ` Arnd Bergmann
2011-09-12 14:32                           ` Arnd Bergmann
2011-08-24 13:09 ` [RFC PATCH 04/10] arm/dts: OMAP4: Add mpu, dsp and iva nodes Benoit Cousson
2011-08-24 13:09   ` Benoit Cousson
     [not found]   ` <1314191356-10963-5-git-send-email-b-cousson-l0cyMroinI0@public.gmane.org>
2011-09-08 18:07     ` Grant Likely
2011-09-08 18:07       ` Grant Likely
2011-08-24 13:09 ` [RFC PATCH 05/10] documentation/dt: Add mpu, dsp and iva bindings Benoit Cousson
2011-08-24 13:09   ` Benoit Cousson
     [not found]   ` <1314191356-10963-6-git-send-email-b-cousson-l0cyMroinI0@public.gmane.org>
2011-09-08 18:09     ` Grant Likely
2011-09-08 18:09       ` Grant Likely
2011-09-09  0:30       ` Cousson, Benoit
2011-09-09  0:30         ` Cousson, Benoit
2011-09-09  2:40         ` Grant Likely
2011-09-09  2:40           ` Grant Likely
2011-08-24 13:09 ` [RFC PATCH 07/10] documentation/dt: Add spinlock bindings Benoit Cousson
2011-08-24 13:09   ` Benoit Cousson
     [not found]   ` <1314191356-10963-8-git-send-email-b-cousson-l0cyMroinI0@public.gmane.org>
2011-09-08 18:10     ` Grant Likely
2011-09-08 18:10       ` Grant Likely
2011-09-09  0:32       ` Cousson, Benoit
2011-09-09  0:32         ` Cousson, Benoit
2011-08-24 13:09 ` [RFC PATCH 08/10] gpio/omap: Adapt GPIO driver to DT Benoit Cousson
2011-08-24 13:09   ` Benoit Cousson
     [not found]   ` <1314191356-10963-9-git-send-email-b-cousson-l0cyMroinI0@public.gmane.org>
2011-09-08 18:15     ` Grant Likely
2011-09-08 18:15       ` Grant Likely
2011-09-09  1:48       ` Cousson, Benoit
2011-09-09  1:48         ` Cousson, Benoit
2011-08-24 13:09 ` [RFC PATCH 09/10] arm/dts: OMAP4: Add gpio nodes Benoit Cousson
2011-08-24 13:09   ` Benoit Cousson
     [not found]   ` <1314191356-10963-10-git-send-email-b-cousson-l0cyMroinI0@public.gmane.org>
2011-09-08 18:16     ` Grant Likely
2011-09-08 18:16       ` Grant Likely
2011-08-24 13:09 ` [RFC PATCH 10/10] documentation/dt: Add OMAP GPIO properties Benoit Cousson
2011-08-24 13:09   ` Benoit Cousson
     [not found]   ` <1314191356-10963-11-git-send-email-b-cousson-l0cyMroinI0@public.gmane.org>
2011-09-08 18:18     ` Grant Likely
2011-09-08 18:18       ` Grant Likely
2011-09-09  1:51       ` Cousson, Benoit
2011-09-09  1:51         ` Cousson, Benoit

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=4E68E09B.4050006@ti.com \
    --to=b-cousson@ti.com \
    --cc=arnd@arndb.de \
    --cc=devicetree-discuss@lists.ozlabs.org \
    --cc=grant.likely@secretlab.ca \
    --cc=khilman@ti.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-omap@vger.kernel.org \
    --cc=manjugk@ti.com \
    --cc=mathieu.poirier@linaro.org \
    --cc=ohad@wizery.com \
    --cc=tony@atomide.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.