From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
To: Andrew Lunn <andrew@lunn.ch>
Cc: David Miller <davem@davemloft.net>,
Florian Fainelli <f.fainelli@gmail.com>,
netdev <netdev@vger.kernel.org>
Subject: Re: [PATCHv2 net-next] dsa: Support multiple MDIO busses
Date: Sun, 9 Aug 2015 20:26:42 +0300 [thread overview]
Message-ID: <55C78D52.5040401@cogentembedded.com> (raw)
In-Reply-To: <20150809142030.GB14271@lunn.ch>
On 8/9/2015 5:20 PM, Andrew Lunn wrote:
>>> When using a cluster of switches, some topologies will have an MDIO
>>> bus per switch, not one for the whole cluster. Allow this to be
>>> represented in the device tree, by adding an optional mii-bus property
>>> at the switch level.
>>> Signed-off-by: Andrew Lunn <andrew@lunn.ch>
>>> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
>>> ---
>>> v2: Fix documentation, which placed the properties documentation in
>>> the wrong place.
>>> ---
>>> Documentation/devicetree/bindings/net/dsa/dsa.txt | 5 +++++
>>> net/dsa/dsa.c | 12 +++++++++++-
>>> 2 files changed, 16 insertions(+), 1 deletion(-)
>>> diff --git a/Documentation/devicetree/bindings/net/dsa/dsa.txt b/Documentation/devicetree/bindings/net/dsa/dsa.txt
>>> index f0b4cd72411d..fc06f4a7c788 100644
>>> --- a/Documentation/devicetree/bindings/net/dsa/dsa.txt
>>> +++ b/Documentation/devicetree/bindings/net/dsa/dsa.txt
>>> @@ -32,6 +32,10 @@ A switch child node has the following optional property:
>>> the presence and/or size of a connected EEPROM,
>>> otherwise optional.
>>>
>>> +- mii-bus : Should be a phandle to a valid MDIO bus device node.
>> Why not call it "mdio-bus"?
> Hi Sergei
> What you cannot see in this hunk, but can in the file is:
> Marvell Distributed Switch Architecture Device Tree Bindings
> ------------------------------------------------------------
> Required properties:
> - compatible : Should be "marvell,dsa"
> - #address-cells : Must be 2, first cell is the address on the MDIO bus
> and second cell is the address in the switch tree.
> Second cell is used only when cascading/chaining.
> - #size-cells : Must be 0
> - dsa,ethernet : Should be a phandle to a valid Ethernet device node
> - dsa,mii-bus : Should be a phandle to a valid MDIO bus device node
>
> The optional mii-bus properties i'm adding should be used in
> preference to this global one, for this switch. Keeping the names the
> same makes sense. But i did drop the dsa prefix to indicate it is
> local, not global scope,
Dropping a vendor prefix usually means that it's (standardized) common
property name. I don't know where you took the "local" scope thing...
> and all the other properties at switch level
> do not use the dsa prefix.
> Andrew
MBR, Sergei
next prev parent reply other threads:[~2015-08-09 17:26 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-09 1:29 [PATCHv2 net-next] dsa: Support multiple MDIO busses Andrew Lunn
2015-08-09 12:39 ` Sergei Shtylyov
2015-08-09 14:20 ` Andrew Lunn
2015-08-09 17:26 ` Sergei Shtylyov [this message]
2015-08-09 17:35 ` Andrew Lunn
2015-08-09 18:33 ` Florian Fainelli
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=55C78D52.5040401@cogentembedded.com \
--to=sergei.shtylyov@cogentembedded.com \
--cc=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=f.fainelli@gmail.com \
--cc=netdev@vger.kernel.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 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.