Netdev List
 help / color / mirror / Atom feed
From: Vladimir Oltean <olteanv@gmail.com>
To: "Russell King (Oracle)" <linux@armlinux.org.uk>
Cc: "Linus Walleij" <linus.walleij@linaro.org>,
	"Enrico Mioso" <mrkiko.rs@gmail.com>,
	"Robert Marko" <robert.marko@sartura.hr>,
	"Chris Packham" <chris.packham@alliedtelesis.co.nz>,
	"Andrew Lunn" <andrew@lunn.ch>,
	"Gregory Clement" <gregory.clement@bootlin.com>,
	"Sebastian Hesselbarth" <sebastian.hesselbarth@gmail.com>,
	"Rob Herring" <robh+dt@kernel.org>,
	"Krzysztof Kozlowski" <krzysztof.kozlowski+dt@linaro.org>,
	"Conor Dooley" <conor+dt@kernel.org>,
	"Florian Fainelli" <f.fainelli@gmail.com>,
	"David S. Miller" <davem@davemloft.net>,
	"Eric Dumazet" <edumazet@google.com>,
	"Jakub Kicinski" <kuba@kernel.org>,
	"Paolo Abeni" <pabeni@redhat.com>,
	"Marek Behún" <kabel@kernel.org>,
	"Christian Marangi" <ansuelsmth@gmail.com>,
	linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org, netdev@vger.kernel.org
Subject: Re: [PATCH net-next v7 5/7] ARM64: dts: marvell: Fix some common switch mistakes
Date: Tue, 24 Oct 2023 22:51:37 +0300	[thread overview]
Message-ID: <20231024195137.2fgustgmyl2r7cdt@skbuf> (raw)
In-Reply-To: <ZTgVE8TzMEPvVeOr@shell.armlinux.org.uk>

On Tue, Oct 24, 2023 at 08:03:47PM +0100, Russell King (Oracle) wrote:
> On Tue, Oct 24, 2023 at 09:28:42PM +0300, Vladimir Oltean wrote:
> > U-Boot code does this, so you can't rename "ports":
> > 
> > 	/*
> > 	 * now if there are more switches or a SFP module coming after,
> > 	 * enable corresponding ports
> > 	 */
> > 	if (id < peridot + topaz - 1) {
> > 		res = fdt_status_okay_by_pathf(blob,
> > 					       "%s/switch%i@%x/ports/port@a",
> > 					       mdio_path, id, addr);
> > 	} else if (id == peridot - 1 && !topaz && sfp) {
> > 		res = fdt_status_okay_by_pathf(blob,
> > 					       "%s/switch%i@%x/ports/port-sfp@a",
> > 					       mdio_path, id, addr);
> > 	} else {
> > 		res = 0;
> > 	}
> 
> So that's now two platforms that do this. I think at this stage, we
> have to regard these node paths as an ABI that we just can't change
> without causing some breakage.

No, it's still the same as the one I pointed out on v4:
https://patchwork.kernel.org/project/netdevbpf/patch/20231018-marvell-88e6152-wan-led-v4-5-3ee0c67383be@linaro.org/

aka the Turris MOX. But it looks like my previous comment wasn't quite
clear, thus Linus' conversion still cleans up too much in this device
tree.

> If we can't fix up all platforms, doesn't that make the YAML
> conversion harder?

Well, I do see this as a valid concern that could potentially bite back,
yes. I did express that the schema should not emit warnings for
$nodename, but TBH I don't know how that constraint could be eliminated:
https://patchwork.kernel.org/project/netdevbpf/patch/20231018-marvell-88e6152-wan-led-v4-6-3ee0c67383be@linaro.org/

> You've asked me to test the Clearfog GT-8k change - which is something
> that won't happen for a while as I don't have the hardware to hand at
> my current location, nor remotely.
> 
> What I can do is poke about in the u-boot sources I have for that
> board and see# whether it's doing anything with those node paths. Off
> the top of my# head, given what the board is, I think it's highly
> unlikely though,# but I will check - possibly tomorrow.

Ok, if U-Boot is the only bootloader, I also looked through the upstream
board source files and only noticed any fixups for MOX. I don't know
what these boards ship with, and how far that is from mainline U-Boot.

  reply	other threads:[~2023-10-24 19:51 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-24 13:20 [PATCH net-next v7 0/7] Create a binding for the Marvell MV88E6xxx DSA switches Linus Walleij
2023-10-24 13:20 ` [PATCH net-next v7 1/7] dt-bindings: net: dsa: Require ports or ethernet-ports Linus Walleij
2023-10-24 16:34   ` Florian Fainelli
2023-10-25 13:02   ` Krzysztof Kozlowski
2023-10-24 13:20 ` [PATCH net-next v7 2/7] dt-bindings: net: mvusb: Fix up DSA example Linus Walleij
2023-10-24 16:34   ` Florian Fainelli
2023-10-24 13:20 ` [PATCH net-next v7 3/7] ARM: dts: marvell: Fix some common switch mistakes Linus Walleij
2023-10-24 16:35   ` Florian Fainelli
2023-10-24 13:20 ` [PATCH net-next v7 4/7] ARM: dts: nxp: " Linus Walleij
2023-10-24 16:36   ` Florian Fainelli
2023-10-24 13:20 ` [PATCH net-next v7 5/7] ARM64: dts: marvell: " Linus Walleij
2023-10-24 16:37   ` Florian Fainelli
2023-10-24 18:28   ` Vladimir Oltean
2023-10-24 19:03     ` Russell King (Oracle)
2023-10-24 19:51       ` Vladimir Oltean [this message]
2023-10-25 19:52       ` Linus Walleij
2023-10-24 20:10     ` Chris Packham
2023-10-24 20:20       ` Vladimir Oltean
2023-10-25 19:48     ` Linus Walleij
2023-10-25 20:56       ` Linus Walleij
2023-10-25 21:21         ` Andrew Lunn
2023-10-24 13:20 ` [PATCH net-next v7 6/7] dt-bindings: marvell: Rewrite MV88E6xxx in schema Linus Walleij
2023-10-24 16:39   ` Florian Fainelli
2023-10-24 13:20 ` [PATCH net-next v7 7/7] dt-bindings: marvell: Add Marvell MV88E6060 DSA schema Linus Walleij
2023-10-24 16:40   ` Florian Fainelli
2023-10-25  9:30 ` [PATCH net-next v7 0/7] Create a binding for the Marvell MV88E6xxx DSA switches patchwork-bot+netdevbpf
2023-10-25  9:36   ` Vladimir Oltean
2023-10-25 14:29     ` Jakub Kicinski

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=20231024195137.2fgustgmyl2r7cdt@skbuf \
    --to=olteanv@gmail.com \
    --cc=andrew@lunn.ch \
    --cc=ansuelsmth@gmail.com \
    --cc=chris.packham@alliedtelesis.co.nz \
    --cc=conor+dt@kernel.org \
    --cc=davem@davemloft.net \
    --cc=devicetree@vger.kernel.org \
    --cc=edumazet@google.com \
    --cc=f.fainelli@gmail.com \
    --cc=gregory.clement@bootlin.com \
    --cc=kabel@kernel.org \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=kuba@kernel.org \
    --cc=linus.walleij@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@armlinux.org.uk \
    --cc=mrkiko.rs@gmail.com \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=robert.marko@sartura.hr \
    --cc=robh+dt@kernel.org \
    --cc=sebastian.hesselbarth@gmail.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