mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Francesco Dolcini <francesco@dolcini.it>
To: Shawn Guo <shawnguo@kernel.org>
Cc: Francesco Dolcini <francesco@dolcini.it>,
	Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>,
	Philippe Schenker <dev@pschenker.ch>,
	devicetree@vger.kernel.org, Sascha Hauer <s.hauer@pengutronix.de>,
	NXP Linux Team <linux-imx@nxp.com>,
	Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
	Rob Herring <robh+dt@kernel.org>,
	Pengutronix Kernel Team <kernel@pengutronix.de>,
	Frank Rowand <frowand.list@gmail.com>,
	linux-arm-kernel@lists.infradead.org,
	Fabio Estevam <festevam@gmail.com>,
	Philippe Schenker <philippe.schenker@toradex.com>,
	linux-kernel@vger.kernel.org,
	Marcel Ziswiler <marcel.ziswiler@toradex.com>
Subject: Re: [PATCH v1 03/25] arm64: dts: colibri-imx8x: Sort properties
Date: Tue, 14 Mar 2023 09:25:24 +0100	[thread overview]
Message-ID: <ZBAvdI/Y0RL7Xf7/@francesco-nb.int.toradex.com> (raw)
In-Reply-To: <20230314081735.GE143566@dragon>

On Tue, Mar 14, 2023 at 04:17:35PM +0800, Shawn Guo wrote:
> On Thu, Mar 09, 2023 at 01:19:13PM +0100, Francesco Dolcini wrote:
> > Hello Krzysztof, first thanks for your review.
> > 
> > Let's try to get some clarity on this with the help of Shawn.
> > 
> > On Wed, Mar 08, 2023 at 01:57:38PM +0100, Krzysztof Kozlowski wrote:
> > > On 08/03/2023 13:52, Philippe Schenker wrote:
> > > > From: Philippe Schenker <philippe.schenker@toradex.com>
> > > > 
> > > > Sort properties according to the following order and inside these
> > > > alphabetically.
> > > > 
> > > > 1. compatible
> > > > 2. reg
> > > > 3. standard properties
> > > > 4. specific properties
> > > > 5. status
> > > 
> > > Is this approved coding style for IMX DTS?
> > 
> > I 100% understand your concerns here.
> > 
> > With that said let me try to briefly explain the reasoning here, in
> > various threads we were asked in the past to move node around based on
> > some not 100% defined rules [0][1].
> > 
> > On Sun, 2023-01-29 at 11:19 +0800, Shawn Guo wrote:
> > >> +&usbotg1 {
> > >> +	adp-disable;
> > >> +	ci-disable-lpm;
> > >> +	hnp-disable;
> > >> +	over-current-active-low;
> > >> +	pinctrl-names = "default";
> > >> +	pinctrl-0 = <&pinctrl_usbotg1>;
> > >
> > >We generally want to put such generic properties before device specific
> > >ones.
> > 
> > In addition to that we find convenient to have properties sorted
> > alphabetically when no other rule is available, it just prevents any
> > kind of discussion, minimize merge conflicts and make comparing files
> > easier.
> > 
> > I also agree that the difference between "generic"/"specific" is fuzzy
> > at best.
> > 
> > With all that said ...
> > 
> > Shawn: What should we do? We can of course avoid any kind of re-ordering
> > from now on.
> 
> We are practically asking for 1, 2 and 5 for i.MX DTS files, but pretty
> flexible for the rest.
> 
> > I am fine to be very pragmatic here, no-reordering on existing DTS
> > files, newly added DTS files we discuss whatever is the reasoning of the
> > reviewer/maintainer on a case-by-case basis.
> 
> Sounds good to me!  While I personally like your ordering, I do not want
> it to churn the existing DTS files.

Agreed.

> 
> I'm happy to take this patch as a special case though :)

Philippe just rebased all the stuff getting rid of the sort commit :-)
No special case needed, he will send an updated series in a hour.

Thanks a lot,
Francesco


  reply	other threads:[~2023-03-14  8:27 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-08 12:52 [PATCH v1 00/25] Update Colibri iMX8X Devicetrees Philippe Schenker
2023-03-08 12:52 ` [PATCH v1 01/25] arm64: dts: colibri-imx8x: Prepare for qxp and dx variants Philippe Schenker
2023-03-08 14:33   ` Krzysztof Kozlowski
2023-03-08 15:21     ` Philippe Schenker
2023-03-08 12:52 ` [PATCH v1 02/25] arm64: dts: colibri-imx8x: Update spdx license Philippe Schenker
2023-03-08 12:52 ` [PATCH v1 03/25] arm64: dts: colibri-imx8x: Sort properties Philippe Schenker
2023-03-08 12:57   ` Krzysztof Kozlowski
2023-03-08 13:29     ` Philippe Schenker
2023-03-08 14:32       ` Krzysztof Kozlowski
2023-03-08 14:50         ` Philippe Schenker
2023-03-08 16:09           ` Krzysztof Kozlowski
2023-03-09 12:19     ` Francesco Dolcini
2023-03-14  8:17       ` Shawn Guo
2023-03-14  8:25         ` Francesco Dolcini [this message]
2023-03-08 12:52 ` [PATCH v1 04/25] arm64: dts: colibri-imx8x: Use new bracket format Philippe Schenker
2023-03-08 12:52 ` [PATCH v1 05/25] arm64: dts: colibri-imx8x: Add atmel pinctrl groups Philippe Schenker
2023-03-08 12:52 ` [PATCH v1 06/25] arm64: dts: colibri-imx8x: Add pinctrl group for csi_mclk Philippe Schenker
2023-03-08 12:52 ` [PATCH v1 07/25] arm64: dts: colibri-imx8x: Split pinctrl_hog1 Philippe Schenker
2023-03-08 12:52 ` [PATCH v1 08/25] arm64: dts: colibri-imx8x: Correct pull on lcdif Philippe Schenker
2023-03-08 12:52 ` [PATCH v1 09/25] arm64: dts: colibri-imx8x: Add separate pinctrl group for cs2 Philippe Schenker
2023-03-08 12:52 ` [PATCH v1 10/25] arm64: dts: colibri-imx8x: Add pinctrl group for hdmi hpd Philippe Schenker
2023-03-08 12:52 ` [PATCH v1 11/25] arm64: dts: colibri-imx8x: Sort fec1 node alphabetically Philippe Schenker
2023-03-08 12:52 ` [PATCH v1 12/25] arm64: dts: colibri-imx8x: Add SPI Philippe Schenker
2023-03-08 12:52 ` [PATCH v1 13/25] arm64: dts: colibri-imx8x: Add gpio-line-names Philippe Schenker
2023-03-08 12:52 ` [PATCH v1 14/25] arm64: dts: colibri-imx8x: Disable touchscreen by default Philippe Schenker
2023-03-08 12:52 ` [PATCH v1 15/25] arm64: dts: colibri-imx8x: Add jpegenc/dec Philippe Schenker
2023-03-08 12:52 ` [PATCH v1 16/25] arm64: dts: colibri-imx8x: Add colibri pwm b, c, d Philippe Schenker
2023-03-08 12:52 ` [PATCH v1 17/25] arm64: dts: colibri-imx8x: eval: Add spi-to-can Philippe Schenker
2023-03-08 13:00   ` Krzysztof Kozlowski
2023-03-08 13:43     ` Philippe Schenker
2023-03-08 14:34       ` Krzysztof Kozlowski
2023-03-08 14:46         ` Philippe Schenker
2023-03-08 14:12     ` Philippe Schenker
2023-03-08 12:52 ` [PATCH v1 18/25] arm64: dts: colibri-imx8x: Add no-1-8-v to sd-card Philippe Schenker
2023-03-08 12:52 ` [PATCH v1 19/25] arm64: dts: colibri-imx8x: Set thermal thresholds Philippe Schenker
2023-03-08 12:52 ` [PATCH v1 20/25] arm64: dts: colibri-imx8x: Move gpio-keys to som level Philippe Schenker
2023-03-08 12:52 ` [PATCH v1 21/25] arm64: dts: colibri-imx8x: Add todo comments Philippe Schenker
2023-03-08 12:52 ` [PATCH v1 22/25] dt-bindings: arm: fsl: Add colibri-imx8x carrier boards Philippe Schenker
2023-03-08 13:04   ` Krzysztof Kozlowski
2023-03-08 12:52 ` [PATCH v1 23/25] arm64: dts: colibri-imx8x: Add aster carrier board Philippe Schenker
2023-03-08 12:52 ` [PATCH v1 24/25] arm64: dts: colibri-imx8x: Add iris " Philippe Schenker
2023-03-08 12:52 ` [PATCH v1 25/25] arm64: dts: colibri-imx8x: Add iris v2 " Philippe Schenker

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=ZBAvdI/Y0RL7Xf7/@francesco-nb.int.toradex.com \
    --to=francesco@dolcini.it \
    --cc=dev@pschenker.ch \
    --cc=devicetree@vger.kernel.org \
    --cc=festevam@gmail.com \
    --cc=frowand.list@gmail.com \
    --cc=kernel@pengutronix.de \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=krzysztof.kozlowski@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-imx@nxp.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marcel.ziswiler@toradex.com \
    --cc=philippe.schenker@toradex.com \
    --cc=robh+dt@kernel.org \
    --cc=s.hauer@pengutronix.de \
    --cc=shawnguo@kernel.org \
    /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

all inboxes | Powered by JetHome®