Re: [PATCH v5 09/12] mtd: rawnand: brcmnand: Add support for getting ecc setting from strap
From: Miquel Raynal
Date: Tue Feb 20 2024 - 04:58:37 EST
Hi William,
william.zhang@xxxxxxxxxxxx wrote on Wed, 7 Feb 2024 12:22:54 -0800:
> BCMBCA broadband SoC based board design does not specify ecc setting in
> dts but rather use the SoC NAND strap info to obtain the ecc strength
> and spare area size setting. Add brcm,nand-ecc-use-strap dts propety for
> this purpose and update driver to support this option.
>
> The generic nand ecc settings still take precedence over this flag. For
And this sentence can also be dropped. Please mention they cannot be
used at the same time.
> example, if nand-ecc-strength is set in the dts, the driver ignores the
> strap setting and falls back to original behavior. This makes sure that
> the existing BCMBCA board dts still works the old way even the strap
> flag is set in the BCMBCA chip dtsi.
I think I already said this was a bad idea IMHO :-)
Thanks,
Miquèl