* Re: [PATCH v6 20/27] misc: lan966x_pci: Fix dtso nodes ordering
[not found] ` <CAD++jLkFu+Z22QBFiaa9S+Epeh=RJZOYX8BOLVDFw4bhEoYF1Q@mail.gmail.com>
@ 2026-05-07 7:23 ` Herve Codina
2026-05-07 9:27 ` Linus Walleij
0 siblings, 1 reply; 2+ messages in thread
From: Herve Codina @ 2026-05-07 7:23 UTC (permalink / raw)
To: Linus Walleij
Cc: Andrew Lunn, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Geert Uytterhoeven, Kalle Niemi, Matti Vaittinen,
Greg Kroah-Hartman, Rafael J. Wysocki, Danilo Krummrich, Frank Li,
Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam,
Michael Turquette, Stephen Boyd, Andi Shyti, Wolfram Sang,
Peter Rosin, Arnd Bergmann, Saravana Kannan, Bjorn Helgaas,
Charles Keepax, Richard Fitzgerald, David Rhodes, Ulf Hansson,
Mark Brown, Len Brown, Andy Shevchenko, Daniel Scally,
Heikki Krogerus, Sakari Ailus, Davidlohr Bueso, Jonathan Cameron,
Dave Jiang, Alison Schofield, Vishal Verma, Ira Weiny,
Dan Williams, Shawn Guo, Wolfram Sang, linux-kernel, driver-core,
imx, linux-arm-kernel, linux-clk, linux-i2c, devicetree,
linux-pci, linux-sound, patches, linux-gpio, linux-pm, linux-spi,
linux-acpi, linux-cxl, Allan Nielsen, Horatiu Vultur,
Steen Hegelund, Luca Ceresoli, Thomas Petazzoni
Hi Linus,
On Thu, 26 Mar 2026 11:33:19 +0100
Linus Walleij <linusw@kernel.org> wrote:
> Hi Herve,
>
> this is nitpicking, but if you respin the series consider the following:
>
> On Wed, Mar 25, 2026 at 3:42 PM Herve Codina <herve.codina@bootlin.com> wrote:
> >
> > Nodes available in the dtso are not ordered by their unit address.
> >
> > Fix that re-ordering them according to their unit address.
> >
> > Signed-off-by: Herve Codina <herve.codina@bootlin.com>
> (...)
> > + switch: switch@e0000000 {
>
> Recommended practice is:
>
> ethernet-switch@...
>
> > + compatible = "microchip,lan966x-switch";
> > + reg = <0xe0000000 0x0100000>,
> > + <0xe2000000 0x0800000>;
> > + reg-names = "cpu", "gcb";
> > +
> > + interrupt-parent = <&oic>;
> > + interrupts = <12 IRQ_TYPE_LEVEL_HIGH>,
> > + <9 IRQ_TYPE_LEVEL_HIGH>;
> > + interrupt-names = "xtr", "ana";
> > +
> > + resets = <&reset 0>;
> > + reset-names = "switch";
> > +
> > + pinctrl-names = "default";
> > + pinctrl-0 = <&tod_pins>;
> > +
> > + ethernet-ports {
> > + #address-cells = <1>;
> > + #size-cells = <0>;
> > +
> > + port0: port@0 {
>
> Recommended practice is:
> ethernet-port@...
>
Yes, it should be but the DT binding [0] says "switch" and "port".
Those node names have to follow the DT binding even if this binding doesn't
follow recommended practice.
[0] https://elixir.bootlin.com/linux/v7.0/source/Documentation/devicetree/bindings/net/microchip,lan966x-switch.yaml
Best regards,
Hervé
--
Hervé Codina, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH v6 20/27] misc: lan966x_pci: Fix dtso nodes ordering
2026-05-07 7:23 ` [PATCH v6 20/27] misc: lan966x_pci: Fix dtso nodes ordering Herve Codina
@ 2026-05-07 9:27 ` Linus Walleij
0 siblings, 0 replies; 2+ messages in thread
From: Linus Walleij @ 2026-05-07 9:27 UTC (permalink / raw)
To: Herve Codina
Cc: Andrew Lunn, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Geert Uytterhoeven, Kalle Niemi, Matti Vaittinen,
Greg Kroah-Hartman, Rafael J. Wysocki, Danilo Krummrich, Frank Li,
Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam,
Michael Turquette, Stephen Boyd, Andi Shyti, Wolfram Sang,
Peter Rosin, Arnd Bergmann, Saravana Kannan, Bjorn Helgaas,
Charles Keepax, Richard Fitzgerald, David Rhodes, Ulf Hansson,
Mark Brown, Len Brown, Andy Shevchenko, Daniel Scally,
Heikki Krogerus, Sakari Ailus, Davidlohr Bueso, Jonathan Cameron,
Dave Jiang, Alison Schofield, Vishal Verma, Ira Weiny,
Dan Williams, Shawn Guo, Wolfram Sang, linux-kernel, driver-core,
imx, linux-arm-kernel, linux-clk, linux-i2c, devicetree,
linux-pci, linux-sound, patches, linux-gpio, linux-pm, linux-spi,
linux-acpi, linux-cxl, Allan Nielsen, Horatiu Vultur,
Steen Hegelund, Luca Ceresoli, Thomas Petazzoni
On Thu, May 7, 2026 at 9:23 AM Herve Codina <herve.codina@bootlin.com> wrote:
> > Recommended practice is:
> >
> > ethernet-switch@...
(...)
> > Recommended practice is:
> > ethernet-port@...
>
> Yes, it should be but the DT binding [0] says "switch" and "port".
(...)
> Those node names have to follow the DT binding even if this binding doesn't
> follow recommended practice.
Aha this binding is not referencing the standard ethernet-switch.yaml,
that's why I got confused.
OK let's just fix it then, I sent a patch.
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-05-07 9:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20260325143555.451852-1-herve.codina@bootlin.com>
[not found] ` <20260325143555.451852-21-herve.codina@bootlin.com>
[not found] ` <CAD++jLkFu+Z22QBFiaa9S+Epeh=RJZOYX8BOLVDFw4bhEoYF1Q@mail.gmail.com>
2026-05-07 7:23 ` [PATCH v6 20/27] misc: lan966x_pci: Fix dtso nodes ordering Herve Codina
2026-05-07 9:27 ` Linus Walleij
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox