linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: Miquel Raynal <miquel.raynal@bootlin.com>
To: Francesco Dolcini <francesco@dolcini.it>
Cc: Marek Vasut <marex@denx.de>, Shawn Guo <shawnguo@kernel.org>,
	linux-arm-kernel@lists.infradead.org,
	Francesco Dolcini <francesco.dolcini@toradex.com>,
	Rob Herring <robh+dt@kernel.org>,
	Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
	Sascha Hauer <s.hauer@pengutronix.de>,
	Pengutronix Kernel Team <kernel@pengutronix.de>,
	Fabio Estevam <festevam@gmail.com>,
	NXP Linux Team <linux-imx@nxp.com>,
	devicetree@vger.kernel.org, linux-mtd@lists.infradead.org,
	stable@vger.kernel.org
Subject: Re: [PATCH v1] Revert "ARM: dts: imx7: Fix NAND controller size-cells"
Date: Tue, 6 Dec 2022 11:16:43 +0100	[thread overview]
Message-ID: <20221206111643.1af08a9b@xps-13> (raw)
In-Reply-To: <Y45BZs7dZokgz83I@francesco-nb.int.toradex.com>

Hi Francesco,

francesco@dolcini.it wrote on Mon, 5 Dec 2022 20:07:18 +0100:

> On Mon, Dec 05, 2022 at 07:52:08PM +0100, Marek Vasut wrote:
> > On 12/5/22 19:18, Miquel Raynal wrote:  
> > > marex@denx.de wrote on Mon, 5 Dec 2022 19:07:14 +0100:  
> > > > On 12/5/22 18:58, Miquel Raynal wrote:  
> > > > > , it's not
> > > > > complex to do, there are plenty of examples. This would be IMHO a
> > > > > better step ahead rather than just a cell change. Anyway, I don't mind
> > > > > reverting this once we've sorted this mess out and fixed U-Boot.  
> > > > 
> > > > Won't we still have issues with older bootloader versions which
> > > > paste partitions directly into this &gpmi {} node, and which needs
> > > > to be fixed up in the parser in the end ?  
> > > 
> > > I believe fdt_fixup_mtdparts() should be killed, so we should no longer
> > > have this problem.  
> > 
> > The fdt_fixup_mtdparts is U-Boot code. If contemporary Linux kernel is
> > booted with ancient U-Boot, then you would still get defective DT passed to
> > Linux, and that should be fixed up by Linux. Removing fdt_fixup_mtdparts()
> > from current mainline U-Boot won't solve this problem.
> > 
> > I think this is also what Francesco is trying to convey (please correct me
> > if I'm wrong).  

If we can get rid of fdt_fixup_mtdparts(), it means someone has to
create the partitions. I guess the easy way would be to just provide
mtdparts to Linux like all the other boards and let Linux deal with it.
Then we can just assume in Linux that perhaps if the partitions are
invalid (#size-cell is wrong?) then we should just stop their creation
and fallback to another mechanism instead of failing entirely. This way
no need for hackish changes in the parsers and compatibility is still
valid with old U-Boot (if mtdparts was provided on the cmdline, to be
checked). Otherwise we'll have to deal with it in Linux, that's a pity.

Thanks,
Miquèl

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

  reply	other threads:[~2022-12-06 10:18 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-05 15:23 [PATCH v1] Revert "ARM: dts: imx7: Fix NAND controller size-cells" Francesco Dolcini
2022-12-05 16:26 ` Marek Vasut
2022-12-05 17:58   ` Miquel Raynal
2022-12-05 18:07     ` Marek Vasut
2022-12-05 18:15       ` Francesco Dolcini
2022-12-05 18:18       ` Miquel Raynal
2022-12-05 18:52         ` Marek Vasut
2022-12-05 19:07           ` Francesco Dolcini
2022-12-06 10:16             ` Miquel Raynal [this message]
2022-12-06 19:02               ` Marek Vasut
2022-12-07  7:49                 ` Francesco Dolcini
2022-12-08 10:51   ` Miquel Raynal
2022-12-08 11:13     ` Thorsten Leemhuis
2022-12-08 13:21     ` Marek Vasut
2022-12-08 13:49       ` Francesco Dolcini
2022-12-08 13:54         ` Marek Vasut
2022-12-08 16:26           ` Francesco Dolcini
2022-12-08 16:40     ` Francesco Dolcini
2022-12-09 13:30       ` Thorsten Leemhuis
2022-12-09 15:25         ` Arnd Bergmann
2022-12-09 15:38           ` Miquel Raynal
2022-12-05 16:31 ` Miquel Raynal

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=20221206111643.1af08a9b@xps-13 \
    --to=miquel.raynal@bootlin.com \
    --cc=devicetree@vger.kernel.org \
    --cc=festevam@gmail.com \
    --cc=francesco.dolcini@toradex.com \
    --cc=francesco@dolcini.it \
    --cc=kernel@pengutronix.de \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-imx@nxp.com \
    --cc=linux-mtd@lists.infradead.org \
    --cc=marex@denx.de \
    --cc=robh+dt@kernel.org \
    --cc=s.hauer@pengutronix.de \
    --cc=shawnguo@kernel.org \
    --cc=stable@vger.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;
as well as URLs for NNTP newsgroup(s).