From: Hongbo Zhang <hongbo.zhang@freescale.com>
To: Stephen Warren <swarren@wwwdotorg.org>
Cc: mark.rutland@arm.com, devicetree@vger.kernel.org,
ian.campbell@citrix.com, pawel.moll@arm.com,
vinod.koul@intel.com, linux-kernel@vger.kernel.org,
rob.herring@calxeda.com, djbw@fb.com,
linuxppc-dev@lists.ozlabs.org
Subject: Re: [PATCH v10 2/3] DMA: Freescale: Add new 8-channel DMA engine device tree nodes
Date: Wed, 25 Sep 2013 15:35:46 +0800 [thread overview]
Message-ID: <52429252.10009@freescale.com> (raw)
In-Reply-To: <5241CC60.5070204@wwwdotorg.org>
On 09/25/2013 01:31 AM, Stephen Warren wrote:
> On 09/24/2013 04:30 AM, Hongbo Zhang wrote:
>> On 09/24/2013 01:04 AM, Stephen Warren wrote:
>>> On 09/18/2013 04:15 AM, hongbo.zhang@freescale.com wrote:
>>>> From: Hongbo Zhang <hongbo.zhang@freescale.com>
>>>>
>>>> Freescale QorIQ T4 and B4 introduce new 8-channel DMA engines, this
>>>> patch adds
>>>> the device tree nodes for them.
>>>> diff --git a/Documentation/devicetree/bindings/powerpc/fsl/dma.txt
>>>> b/Documentation/devicetree/bindings/powerpc/fsl/dma.txt
>>>> +Required properties:
>>>> +
>>>> +- compatible : must include "fsl,elo3-dma"
>>>> +- reg : DMA General Status Registers, i.e. DGSR0 which
>>>> contains
>>>> + status for channel 1~4, and DGSR1 for channel 5~8
>>> Is that a single entry, which is large enough to cover both registers,
>>> or a pair of entries, one per register? Reading the text, I might assume
>>> the former, but looking at the examples, it's the latter.
>> My impression is that I cannot tell it is one larger entry or two
>> entries by reading the description text, but the example gives the answer.
>> Is it so important to specify it is only one entry or entries list?
>> I prefer language as concise as possible, especially for the common
>> properties such as reg and interrupt (eg the reg is implicitly offset
>> and length of registers, can be continuous or not), it is difficult or
>> unnecessary or impossible to describe much details, the example can also
>> work as a complementary description, otherwise no need to put an example
>> in the binding document.
> The description of the properties should fully describe them. The
> example is just an example, not a specification of the properties.
>
It is OK for me to update the description like this:
reg: containing two entries for DMA General Status Registers, i.e.
DGSR0 which contains + status for channel 1~4, and DGSR1 for channel 5~8
and let me wait one or more days to see if other reviewers/maintainers
have further comments before I send our another iteration.
By the way, I know maybe it is difficult, but why not introduce a
document of maintaining rules for the dt binding docs? we have dedicated
maintainers for this part now. Description language from one submitter
cannot satisfy every reviewer/maintainer, for a reg property, is it
necessary to say "offset and length", to say "how many entries", to say
"register functions and even names"? If there is specific rules (even
with good examples), it will be convenient for both submitter and
reviewers. Without rules/guidelines, new submitter would like to follow
old bad samples.
next prev parent reply other threads:[~2013-09-25 7:35 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-18 10:15 [PATCH v10 0/3] DMA: Freescale: Add support for 8-channel DMA engine hongbo.zhang-KZfg59tc24xl57MIdRCFDg
2013-09-18 10:15 ` [PATCH v10 1/3] DMA: Freescale: revise device tree binding document hongbo.zhang
2013-09-18 10:15 ` [PATCH v10 2/3] DMA: Freescale: Add new 8-channel DMA engine device tree nodes hongbo.zhang
[not found] ` <1379499333-4745-3-git-send-email-hongbo.zhang-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
2013-09-23 17:04 ` Stephen Warren
[not found] ` <524074A7.7000001-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2013-09-24 10:30 ` Hongbo Zhang
[not found] ` <524169E3.7030408-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
2013-09-24 17:31 ` Stephen Warren
2013-09-25 7:35 ` Hongbo Zhang [this message]
2013-09-26 1:46 ` Scott Wood
[not found] ` <1380159992.24959.248.camel-88ow+0ZRuxG2UiBs7uKeOtHuzzzSOjJt@public.gmane.org>
2013-09-26 2:28 ` David Gibson
[not found] ` <20130926022859.GL9625-1s0os16eZneny3qCrzbmXA@public.gmane.org>
2013-09-26 5:06 ` Hongbo Zhang
[not found] ` <1379499333-4745-1-git-send-email-hongbo.zhang-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
2013-09-18 10:15 ` [PATCH v10 3/3] DMA: Freescale: update driver to support 8-channel DMA engine hongbo.zhang-KZfg59tc24xl57MIdRCFDg
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=52429252.10009@freescale.com \
--to=hongbo.zhang@freescale.com \
--cc=devicetree@vger.kernel.org \
--cc=djbw@fb.com \
--cc=ian.campbell@citrix.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=mark.rutland@arm.com \
--cc=pawel.moll@arm.com \
--cc=rob.herring@calxeda.com \
--cc=swarren@wwwdotorg.org \
--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 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).