All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stephen Warren <swarren@wwwdotorg.org>
To: Scott Wood <scottwood@freescale.com>
Cc: devicetree@vger.kernel.org, hongbo.zhang@freescale.com,
	linux-kernel@vger.kernel.org, vinod.koul@intel.com, djbw@fb.com,
	linuxppc-dev@lists.ozlabs.org
Subject: Re: [PATCH v7 1/3] DMA: Freescale: revise device tree binding document
Date: Wed, 21 Aug 2013 17:12:54 -0600	[thread overview]
Message-ID: <52154976.2010204@wwwdotorg.org> (raw)
In-Reply-To: <1377125156.5029.40.camel@snotra.buserror.net>

On 08/21/2013 04:45 PM, Scott Wood wrote:
> On Wed, 2013-08-21 at 16:33 -0600, Stephen Warren wrote:
>> On 07/29/2013 04:49 AM, hongbo.zhang@freescale.com wrote:
>>> From: Hongbo Zhang <hongbo.zhang@freescale.com>
>>>
>>> This patch updates the discription of each type of DMA controller and its
>>> channels, it is preparation for adding another new DMA controller binding, it
>>> also fixes some defects of indent for text alignment at the same time.
>>
>>> diff --git a/Documentation/devicetree/bindings/powerpc/fsl/dma.txt b/Documentation/devicetree/bindings/powerpc/fsl/dma.txt
>>
>>> -- compatible        : compatible list, contains 2 entries, first is
>>> -		 "fsl,CHIP-dma", where CHIP is the processor
>>> -		 (mpc8349, mpc8360, etc.) and the second is
>>> -		 "fsl,elo-dma"
>>> +- compatible        : must include "fsl,elo-dma"
>>
>> Why remove the list of supported compatible values. Lately it seems that
>> we're moving towards listing more/all the values rather than removing
>> their documentation...
> 
> Previous versions had language that required fsl,CHIP-dma for 83xx (and
> maybe 85xx?) but not the new chip.  I asked for it to be consistent.
> The reason that 83xx still has fsl,CHIP-dma is not because of anything
> special to 83xx, but that most other chips with this device have been
> converted to dtsi and it's much more of a pain to specify the specific
> SoC in that context.  The existing language does not match actual device
> trees when it comes to 85xx.
> 
> Plus, the exact SoC name is of dubious value for integrated devices.  It
> doesn't uniquely identify the hardware because different versions of the
> SoC could have different versions of the subdevice.  As such, on our
> chips we've been moving away from including a compatible that specifies
> the exact SoC.  If it turns out we made a mistake in naming different
> versions of the device, or if there are errata, the exact SoC can still
> be determined at runtime using SVR.

OK, if there's some alternative run-time way of enabling chip-specific
quirking, it's probably fine to remove the extra compatible values.

Now, that does rather assume that this DMA IP block will only ever be
used within SoCs that have that SVR concept, but perhaps if that's ever
not the case, we can simply go back to requiring extra compatible values
in those specific cases?

WARNING: multiple messages have this Message-ID (diff)
From: Stephen Warren <swarren@wwwdotorg.org>
To: Scott Wood <scottwood@freescale.com>
Cc: hongbo.zhang@freescale.com, vinod.koul@intel.com, djbw@fb.com,
	leoli@freescale.com, linuxppc-dev@lists.ozlabs.org,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v7 1/3] DMA: Freescale: revise device tree binding document
Date: Wed, 21 Aug 2013 17:12:54 -0600	[thread overview]
Message-ID: <52154976.2010204@wwwdotorg.org> (raw)
In-Reply-To: <1377125156.5029.40.camel@snotra.buserror.net>

On 08/21/2013 04:45 PM, Scott Wood wrote:
> On Wed, 2013-08-21 at 16:33 -0600, Stephen Warren wrote:
>> On 07/29/2013 04:49 AM, hongbo.zhang@freescale.com wrote:
>>> From: Hongbo Zhang <hongbo.zhang@freescale.com>
>>>
>>> This patch updates the discription of each type of DMA controller and its
>>> channels, it is preparation for adding another new DMA controller binding, it
>>> also fixes some defects of indent for text alignment at the same time.
>>
>>> diff --git a/Documentation/devicetree/bindings/powerpc/fsl/dma.txt b/Documentation/devicetree/bindings/powerpc/fsl/dma.txt
>>
>>> -- compatible        : compatible list, contains 2 entries, first is
>>> -		 "fsl,CHIP-dma", where CHIP is the processor
>>> -		 (mpc8349, mpc8360, etc.) and the second is
>>> -		 "fsl,elo-dma"
>>> +- compatible        : must include "fsl,elo-dma"
>>
>> Why remove the list of supported compatible values. Lately it seems that
>> we're moving towards listing more/all the values rather than removing
>> their documentation...
> 
> Previous versions had language that required fsl,CHIP-dma for 83xx (and
> maybe 85xx?) but not the new chip.  I asked for it to be consistent.
> The reason that 83xx still has fsl,CHIP-dma is not because of anything
> special to 83xx, but that most other chips with this device have been
> converted to dtsi and it's much more of a pain to specify the specific
> SoC in that context.  The existing language does not match actual device
> trees when it comes to 85xx.
> 
> Plus, the exact SoC name is of dubious value for integrated devices.  It
> doesn't uniquely identify the hardware because different versions of the
> SoC could have different versions of the subdevice.  As such, on our
> chips we've been moving away from including a compatible that specifies
> the exact SoC.  If it turns out we made a mistake in naming different
> versions of the device, or if there are errata, the exact SoC can still
> be determined at runtime using SVR.

OK, if there's some alternative run-time way of enabling chip-specific
quirking, it's probably fine to remove the extra compatible values.

Now, that does rather assume that this DMA IP block will only ever be
used within SoCs that have that SVR concept, but perhaps if that's ever
not the case, we can simply go back to requiring extra compatible values
in those specific cases?

  reply	other threads:[~2013-08-21 23:12 UTC|newest]

Thread overview: 67+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-29 10:49 [PATCH v7 0/3] DMA: Freescale: Add support for 8-channel DMA engine hongbo.zhang
2013-07-29 10:49 ` hongbo.zhang
2013-07-29 10:49 ` hongbo.zhang
2013-07-29 10:49 ` [PATCH v7 1/3] DMA: Freescale: revise device tree binding document hongbo.zhang
2013-07-29 10:49   ` hongbo.zhang
2013-07-29 10:49   ` hongbo.zhang
2013-07-29 22:09   ` Scott Wood
2013-07-29 22:09     ` Scott Wood
2013-07-29 22:09     ` Scott Wood
2013-08-21 22:33   ` Stephen Warren
2013-08-21 22:33     ` Stephen Warren
2013-08-21 22:45     ` Scott Wood
2013-08-21 22:45       ` Scott Wood
2013-08-21 22:45       ` Scott Wood
2013-08-21 23:12       ` Stephen Warren [this message]
2013-08-21 23:12         ` Stephen Warren
2013-08-21 23:33         ` Scott Wood
2013-08-21 23:33           ` Scott Wood
2013-08-21 23:33           ` Scott Wood
2013-07-29 10:49 ` [PATCH v7 2/3] DMA: Freescale: Add new 8-channel DMA engine device tree nodes hongbo.zhang
2013-07-29 10:49   ` hongbo.zhang
2013-07-29 10:49   ` hongbo.zhang
2013-07-29 22:10   ` Scott Wood
2013-07-29 22:10     ` Scott Wood
2013-07-29 22:10     ` Scott Wood
2013-07-30  2:10     ` Hongbo Zhang
2013-07-30  2:10       ` Hongbo Zhang
2013-07-30  2:10       ` Hongbo Zhang
2013-08-21 22:40   ` Stephen Warren
2013-08-21 22:40     ` Stephen Warren
2013-08-21 22:57     ` Scott Wood
2013-08-21 22:57       ` Scott Wood
2013-08-21 22:57       ` Scott Wood
2013-08-21 23:15       ` Stephen Warren
2013-08-21 23:15         ` Stephen Warren
2013-08-21 23:31         ` Scott Wood
2013-08-21 23:31           ` Scott Wood
2013-08-21 23:31           ` Scott Wood
2013-08-22  0:27           ` Timur Tabi
2013-08-22  0:27             ` Timur Tabi
2013-08-21 23:00     ` Scott Wood
2013-08-21 23:00       ` Scott Wood
2013-08-21 23:00       ` Scott Wood
2013-08-21 23:16       ` Stephen Warren
2013-08-21 23:16         ` Stephen Warren
2013-08-23  3:17         ` Hongbo Zhang
2013-08-23  3:17           ` Hongbo Zhang
2013-08-23  3:17           ` Hongbo Zhang
2013-08-26 10:33           ` Hongbo Zhang
2013-08-26 10:33             ` Hongbo Zhang
2013-08-26 10:33             ` Hongbo Zhang
2013-07-29 10:49 ` [PATCH v7 3/3] DMA: Freescale: update driver to support 8-channel DMA engine hongbo.zhang
2013-07-29 10:49   ` hongbo.zhang
2013-07-29 10:49   ` hongbo.zhang
2013-07-29 10:59 ` [PATCH v7 0/3] DMA: Freescale: Add support for " Vinod Koul
2013-07-29 10:59   ` Vinod Koul
2013-07-30  2:08   ` Hongbo Zhang
2013-07-30  2:08     ` Hongbo Zhang
2013-07-30  2:08     ` Hongbo Zhang
2013-08-20  8:33   ` Hongbo Zhang
2013-08-20  8:33     ` Hongbo Zhang
2013-08-20  8:33     ` Hongbo Zhang
2013-08-20  8:15     ` Vinod Koul
2013-08-20  8:15       ` Vinod Koul
2013-08-21  6:59       ` Hongbo Zhang
2013-08-21  6:59         ` Hongbo Zhang
2013-08-21  6:59         ` Hongbo Zhang

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=52154976.2010204@wwwdotorg.org \
    --to=swarren@wwwdotorg.org \
    --cc=devicetree@vger.kernel.org \
    --cc=djbw@fb.com \
    --cc=hongbo.zhang@freescale.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=scottwood@freescale.com \
    --cc=vinod.koul@intel.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.