[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <c86d69f5-eb97-4e0b-b2db-5b30f472a0d3@lunn.ch>
Date: Wed, 29 Jan 2025 14:07:02 +0100
From: Andrew Lunn <andrew@...n.ch>
To: Swathi K S <swathi.ks@...sung.com>
Cc: 'Krzysztof Kozlowski' <krzk@...nel.org>, netdev@...r.kernel.org,
devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-stm32@...md-mailman.stormreply.com,
linux-arm-kernel@...ts.infradead.org,
linux-samsung-soc@...r.kernel.org, alexandre.torgue@...s.st.com,
peppe.cavallaro@...com, joabreu@...opsys.com, rcsekar@...sung.com,
ssiddha@...la.com, jayati.sahu@...sung.com,
pankaj.dubey@...sung.com, ravi.patel@...sung.com,
gost.dev@...sung.com, robh@...nel.org, davem@...emloft.net,
edumazet@...gle.com, kuba@...nel.org, pabeni@...hat.com,
conor+dt@...nel.org, richardcochran@...il.com,
mcoquelin.stm32@...il.com, alim.akhtar@...sung.com,
linux-fsd@...la.com
Subject: Re: [PATCH v5 4/4] arm64: dts: fsd: Add Ethernet support for PERIC
Block of FSD SoC
On Wed, Jan 29, 2025 at 02:49:14PM +0530, Swathi K S wrote:
>
>
> > -----Original Message-----
> > From: Krzysztof Kozlowski <krzk@...nel.org>
> > Sent: 28 January 2025 19:48
> > To: Swathi K S <swathi.ks@...sung.com>; robh@...nel.org;
> > davem@...emloft.net; edumazet@...gle.com; kuba@...nel.org;
> > pabeni@...hat.com; conor+dt@...nel.org; richardcochran@...il.com;
> > mcoquelin.stm32@...il.com; andrew@...n.ch; alim.akhtar@...sung.com;
> > linux-fsd@...la.com
> > Cc: netdev@...r.kernel.org; devicetree@...r.kernel.org; linux-
> > kernel@...r.kernel.org; linux-stm32@...md-mailman.stormreply.com;
> > linux-arm-kernel@...ts.infradead.org; linux-samsung-soc@...r.kernel.org;
> > alexandre.torgue@...s.st.com; peppe.cavallaro@...com;
> > joabreu@...opsys.com; rcsekar@...sung.com; ssiddha@...la.com;
> > jayati.sahu@...sung.com; pankaj.dubey@...sung.com;
> > ravi.patel@...sung.com; gost.dev@...sung.com
> > Subject: Re: [PATCH v5 4/4] arm64: dts: fsd: Add Ethernet support for PERIC
> > Block of FSD SoC
> >
> > On 28/01/2025 11:25, Swathi K S wrote:
> > >
> > > &pinctrl_pmu {
> > > diff --git a/arch/arm64/boot/dts/tesla/fsd.dtsi
> > b/arch/arm64/boot/dts/tesla/fsd.dtsi
> > > index cc67930ebf78..670f6a852542 100644
> > > --- a/arch/arm64/boot/dts/tesla/fsd.dtsi
> > > +++ b/arch/arm64/boot/dts/tesla/fsd.dtsi
> > > @@ -1027,6 +1027,33 @@
> > > phy-mode = "rgmii-id";
> > > status = "disabled";
> > > };
> > > +
> > > + ethernet_1: ethernet@...00000 {
> >
> > Don't add nodes to the end, because that lead to mess we have there.
> > Squeeze it somewhere where impact on resorting would be the smallest.
>
> Just to clarify, inserting the node somewhere in the middle, where it fits alphabetically, would minimize the impact on resorting.
> Is my understanding correct?
I think the coding style says to order them by address. So sort on
14300000.
The issue here is merging patches coming from different subsystems. If
these patches are merged via netdev, and there are other patches for
other devices coming from other subsystem, there is going to be a
merge conflict if they all append to the end. By keeping things
ordered, the chance of a merge conflict is much lower, since the
changes are likely to be separated. So you will find in Linux anything
which can be sorted is sorted. Makefile, Kconfig, order of #includes
etc.
Andrew
Powered by blists - more mailing lists