]> git.ipfire.org Git - thirdparty/u-boot.git/commit
mtd: rawnand: sunxi: make the code mode self-explanatory
authorRichard Genoud <richard.genoud@bootlin.com>
Fri, 27 Mar 2026 14:05:05 +0000 (15:05 +0100)
committerAndre Przywara <andre.przywara@arm.com>
Thu, 30 Apr 2026 22:35:59 +0000 (00:35 +0200)
commit6b33232e32828c47ffb9fa024220a7899533f550
tree255f555580d4ea111c89bb622c9baad20a00b4df
parent125bba0f61e3643de67d03c95e5cdcf5fded1f5b
mtd: rawnand: sunxi: make the code mode self-explanatory

In sunxi_nfc_hw_ecc_{read,write}_chunk(), the ECC step was force to 0,
the reason is not trivial to get when reading the code.

The explanation is that, from the NAND flash controller perspective, we
are indeed at step 0 for user data length and ECC errors.

Just add a const value with an explanation to clarify things.

Signed-off-by: Richard Genoud <richard.genoud@bootlin.com>
Reviewed-By: Michael Trimarchi <michael@amarulasolutions.com>
Acked-by: Andre Przywara <andre.przywara@arm.com>
drivers/mtd/nand/raw/sunxi_nand.c
drivers/mtd/nand/raw/sunxi_nand_spl.c