From: Vladimir Oltean <vladimir.oltean@nxp.com>
To: Andrew Lunn <andrew@lunn.ch>
Cc: "netdev@vger.kernel.org" <netdev@vger.kernel.org>,
"David S. Miller" <davem@davemloft.net>,
"Eric Dumazet" <edumazet@google.com>,
"Jakub Kicinski" <kuba@kernel.org>,
"Paolo Abeni" <pabeni@redhat.com>,
"Vivien Didelot" <vivien.didelot@gmail.com>,
"Florian Fainelli" <f.fainelli@gmail.com>,
"Oleksij Rempel" <linux@rempel-privat.de>,
"Christian Marangi" <ansuelsmth@gmail.com>,
"John Crispin" <john@phrozen.org>,
"Kurt Kanzenbach" <kurt@linutronix.de>,
"Mans Rullgard" <mans@mansr.com>,
"Arun Ramadoss" <arun.ramadoss@microchip.com>,
"Woojung Huh" <woojung.huh@microchip.com>,
"UNGLinuxDriver@microchip.com" <UNGLinuxDriver@microchip.com>,
"Claudiu Manoil" <claudiu.manoil@nxp.com>,
"Alexandre Belloni" <alexandre.belloni@bootlin.com>,
"George McCollister" <george.mccollister@gmail.com>,
"DENG Qingfang" <dqfext@gmail.com>,
"Sean Wang" <sean.wang@mediatek.com>,
"Landen Chao" <Landen.Chao@mediatek.com>,
"Matthias Brugger" <matthias.bgg@gmail.com>,
"Hauke Mehrtens" <hauke@hauke-m.de>,
"Martin Blumenstingl" <martin.blumenstingl@googlemail.com>,
"Aleksander Jan Bajkowski" <olek2@wp.pl>,
"Alvin Šipraga" <alsi@bang-olufsen.dk>,
"Luiz Angelo Daros de Luca" <luizluca@gmail.com>,
"Linus Walleij" <linus.walleij@linaro.org>,
"Pawel Dembicki" <paweldembicki@gmail.com>,
"Clément Léger" <clement.leger@bootlin.com>,
"Geert Uytterhoeven" <geert+renesas@glider.be>,
"Russell King" <rmk+kernel@armlinux.org.uk>
Subject: Re: [PATCH net-next] net: dsa: validate that DT nodes of shared ports have the properties they need
Date: Sun, 24 Jul 2022 14:21:59 +0000 [thread overview]
Message-ID: <20220724142158.dsj7yytiwk7welcp@skbuf> (raw)
In-Reply-To: <Ytw5XrDYa4FQF+Uk@lunn.ch>
On Sat, Jul 23, 2022 at 08:09:34PM +0200, Andrew Lunn wrote:
> Hi Vladimir
>
> I think this is a first good step.
>
> > +static const char * const dsa_switches_skipping_validation[] = {
>
> One thing to consider is do we want to go one step further and make
> this dsa_switches_dont_enforce_validation
>
> Meaning always run the validation, and report what is not valid, but
> don't enforce with an -EINVAL for switches on the list?
Can do. The question is what are our prospects of eventually getting rid
of incompletely specified DT blobs. If they're likely to stay around
forever, maybe printing with dev_err() doesn't sound like such a great
idea?
I know what's said in Documentation/devicetree/bindings/net/dsa/marvell.txt
about not putting a DT blob somewhere where you can't update it, but
will that be the case for everyone? Florian, I think some bcm_sf2 device
trees are pretty much permanent, based on some of your past commits?
> Maybe it is too early for that, we first need to submit patches to the
> mainline DT files to fixes those we can?
>
> Looking at the mv88e6xxx instances, adding fixed-links should not be
> too hard. What might be harder is the phy-mode, in particular, what
> RGMII delay should be specified.
Since DT blobs and kernels have essentially separate lifetimes, I'm
thinking it doesn't matter too much if we first fix the mainline DT
blobs or not; it's not like that would avoid users seeing errors.
Anyway I'm thinking it would be useful in general to verbally resolve
some of the incomplete DT descriptions I've pointed out here. This would
be a good indication whether we can add automatic logic that comes to
the same resolution at least for all known cases.
next prev parent reply other threads:[~2022-07-24 14:22 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-23 16:46 [PATCH net-next] net: dsa: validate that DT nodes of shared ports have the properties they need Vladimir Oltean
2022-07-23 18:09 ` Andrew Lunn
2022-07-24 14:21 ` Vladimir Oltean [this message]
2022-07-24 14:39 ` Andrew Lunn
2022-07-24 16:59 ` Florian Fainelli
2022-07-24 20:28 ` Vladimir Oltean
2022-07-25 16:37 ` Florian Fainelli
2022-07-23 21:50 ` kernel test robot
2022-07-24 0:30 ` Alvin Šipraga
2022-07-25 16:27 ` Florian Fainelli
2022-07-25 19:21 ` Martin Blumenstingl
2022-07-26 7:12 ` Kurt Kanzenbach
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=20220724142158.dsj7yytiwk7welcp@skbuf \
--to=vladimir.oltean@nxp.com \
--cc=Landen.Chao@mediatek.com \
--cc=UNGLinuxDriver@microchip.com \
--cc=alexandre.belloni@bootlin.com \
--cc=alsi@bang-olufsen.dk \
--cc=andrew@lunn.ch \
--cc=ansuelsmth@gmail.com \
--cc=arun.ramadoss@microchip.com \
--cc=claudiu.manoil@nxp.com \
--cc=clement.leger@bootlin.com \
--cc=davem@davemloft.net \
--cc=dqfext@gmail.com \
--cc=edumazet@google.com \
--cc=f.fainelli@gmail.com \
--cc=geert+renesas@glider.be \
--cc=george.mccollister@gmail.com \
--cc=hauke@hauke-m.de \
--cc=john@phrozen.org \
--cc=kuba@kernel.org \
--cc=kurt@linutronix.de \
--cc=linus.walleij@linaro.org \
--cc=linux@rempel-privat.de \
--cc=luizluca@gmail.com \
--cc=mans@mansr.com \
--cc=martin.blumenstingl@googlemail.com \
--cc=matthias.bgg@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=olek2@wp.pl \
--cc=pabeni@redhat.com \
--cc=paweldembicki@gmail.com \
--cc=rmk+kernel@armlinux.org.uk \
--cc=sean.wang@mediatek.com \
--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: 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