From: Simon Horman <horms@verge.net.au>
To: Mark Rutland <mark.rutland@arm.com>
Cc: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
"devicetree-discuss@lists.ozlabs.org"
<devicetree-discuss@lists.ozlabs.org>,
"magnus.damm@gmail.com" <magnus.damm@gmail.com>,
"kda@linux-powerpc.org" <kda@linux-powerpc.org>
Subject: Re: [PATCHi v2] net: sh_eth: Add support of device tree probe
Date: Tue, 5 Mar 2013 09:43:35 +0900 [thread overview]
Message-ID: <20130305004335.GF9439@verge.net.au> (raw)
In-Reply-To: <20130215163251.GA2597@e106331-lin.cambridge.arm.com>
On Fri, Feb 15, 2013 at 04:32:51PM +0000, Mark Rutland wrote:
> Hello,
>
> I have a couple of comments on the binding and the way it's parsed.
>
> On Thu, Feb 14, 2013 at 12:51:31AM +0000, Nobuhiro Iwamatsu wrote:
> > This adds support of device tree probe for Renesas sh-ether driver.
> >
> > Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
> >
> > ---
> > V2: - Removed ether_setup().
> > - Fixed typo from "sh-etn" to "sh-eth".
> > - Removed "needs-init" and sh-eth,endian from definition of DT.
> > - Changed "sh-eth,edmac-endian" instead of "sh-eth,edmac-big-endain"
> > in definition of DT.
> >
> > Documentation/devicetree/bindings/net/sh_ether.txt | 41 +++++
> > drivers/net/ethernet/renesas/sh_eth.c | 156 +++++++++++++++++---
> > 2 files changed, 173 insertions(+), 24 deletions(-)
> > create mode 100644 Documentation/devicetree/bindings/net/sh_ether.txt
> >
> > diff --git a/Documentation/devicetree/bindings/net/sh_ether.txt b/Documentation/devicetree/bindings/net/sh_ether.txt
> > new file mode 100644
> > index 0000000..7415e54
> > --- /dev/null
> > +++ b/Documentation/devicetree/bindings/net/sh_ether.txt
> > @@ -0,0 +1,41 @@
> > +* Renesas Electronics SuperH EMAC
> > +
> > +This file provides information, what the device node
> > +for the sh_eth interface contains.
> > +
> > +Required properties:
> > +- compatible: "renesas,sh-eth";
> > +- interrupt-parent: The phandle for the interrupt controller that
> > + services interrupts for this device.
>
> Is this really a required property?
>
> As it's a standard property with a well-defined meaning, is it necessary to
> document?
>
> > +- reg: Offset and length of the register set for the
> > + device.
>
> The example below shows 2 reg values, yet this implies only one is necessary.
>
> > +- interrupts: Interrupt mapping for the sh_eth interrupt
> > + sources (vector id).
>
> How many interrupts are expected, what are they, and in what order should they be in?
>
> > +- phy-mode: String, operation mode of the PHY interface.
>
> What are the valid values for this?
>
> If they're defined in another document, it'd be good to reference it.
>
> > +- sh-eth,register-type: String, register type of sh_eth.
> > + Please select "gigabit", "fast-sh4" or
> > + "fast-sh3-sh2".
>
> Why are these not handled as separate versions using the compatible string to
> differentiate them?
Hi Iwamatasu-san,
Could you please address this review?
I believe it is still applicable as of v5 which you posted yesterday.
next prev parent reply other threads:[~2013-03-05 0:43 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-14 0:51 [PATCHi v2] net: sh_eth: Add support of device tree probe Nobuhiro Iwamatsu
2013-02-14 1:24 ` Kuninori Morimoto
2013-02-14 2:56 ` Nobuhiro Iwamatsu
2013-02-22 18:49 ` Simon Horman
2013-02-27 0:39 ` Nobuhiro Iwamatsu
2013-03-04 8:05 ` Grant Likely
2013-03-04 21:37 ` Nobuhiro Iwamatsu
2013-02-14 23:07 ` Nobuhiro Iwamatsu
2013-02-14 1:47 ` Magnus Damm
2013-02-14 3:18 ` Nobuhiro Iwamatsu
2013-02-15 16:32 ` Mark Rutland
2013-03-05 0:43 ` Simon Horman [this message]
2013-03-18 0:53 ` Nobuhiro Iwamatsu
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=20130305004335.GF9439@verge.net.au \
--to=horms@verge.net.au \
--cc=devicetree-discuss@lists.ozlabs.org \
--cc=kda@linux-powerpc.org \
--cc=magnus.damm@gmail.com \
--cc=mark.rutland@arm.com \
--cc=netdev@vger.kernel.org \
--cc=nobuhiro.iwamatsu.yj@renesas.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).