Netdev Archive on lore.kernel.org help / color / mirror / Atom feed
From: Andrew Lunn <andrew@lunn.ch> To: Helmut Grohne <helmut.grohne@intenta.de> Cc: Woojung Huh <woojung.huh@microchip.com>, Microchip Linux Driver Support <UNGLinuxDriver@microchip.com>, Vivien Didelot <vivien.didelot@gmail.com>, Florian Fainelli <f.fainelli@gmail.com>, netdev@vger.kernel.org Subject: Re: net/dsa/microchip: correct placement of dt property phy-mode? Date: Wed, 17 Jun 2020 23:18:51 +0200 [thread overview] Message-ID: <20200617211851.GD240559@lunn.ch> (raw) In-Reply-To: <20200617082235.GA1523@laureti-dev> > If nothing else, it makes the device tree unintuitive to use. > > Is this placement of the phy-mode on the switch intentional? That i cannot answer. > > If yes: I think this should be prominently documented in > Documentation/devicetree/bindings/net/dsa/ksz.txt. Yes, it needs to be documented. > If no: The microchip driver should follow the documented dsa convention > and place the phy-mode on the relevant port nodes. > > If no: Do we have to support old device trees that have the phy-mode > property on the switch? We should not break existing DT blobs. So the driver should be extended to first look in the port node. If it does not find it there, look in the switch node. And maybe give a warning if it is found in the switch node, saying the DT should be updated. Andrew
next prev parent reply other threads:[~2020-06-17 21:18 UTC|newest] Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-06-17 8:22 net/dsa/microchip: correct placement of dt property phy-mode? Helmut Grohne 2020-06-17 21:18 ` Andrew Lunn [this message] 2020-07-14 12:08 ` [PATCH] net: dsa: microchip: look for phy-mode in port nodes Helmut Grohne 2020-07-14 22:27 ` Andrew Lunn 2020-07-15 7:31 ` Helmut Grohne 2020-07-15 13:00 ` Andrew Lunn 2020-07-16 7:00 ` Helmut Grohne 2020-07-16 10:07 ` Helmut Grohne 2020-08-20 6:03 ` [RESEND PATCH] " Helmut Grohne 2020-08-24 22:37 ` David Miller 2020-09-04 8:14 ` [PATCH v2] " Helmut Grohne 2020-09-04 12:59 ` Alexandre Belloni 2020-09-04 13:52 ` Andrew Lunn 2020-09-07 6:15 ` Helmut Grohne 2020-09-07 12:55 ` Andrew Lunn 2020-09-08 8:01 ` [PATCH v3] " Helmut Grohne 2020-09-10 19:32 ` David Miller 2020-09-24 8:37 ` [PATCH] net: dsa: microchip: really " Helmut Grohne 2020-09-25 3:10 ` David Miller
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=20200617211851.GD240559@lunn.ch \ --to=andrew@lunn.ch \ --cc=UNGLinuxDriver@microchip.com \ --cc=f.fainelli@gmail.com \ --cc=helmut.grohne@intenta.de \ --cc=netdev@vger.kernel.org \ --cc=vivien.didelot@gmail.com \ --cc=woojung.huh@microchip.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: linkBe 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).