Re: [PATCH v3] mtd: rawnand: sunxi: reject ECC maximization on small pages
From: Miquel Raynal
Date: Wed Sep 09 2026 - 04:05:09 EST
On Fri, 04 Sep 2026 19:05:37 -0600, James Hilliard wrote:
> When nand-ecc-maximize is set, the driver selects a 1024-byte ECC step
> and divides the available OOB bytes by the resulting number of steps. A
> NAND with a smaller page therefore produces zero steps and a division by
> zero.
>
> The older controllers also provide a 512-byte ECC block mode, but the
> hardware documentation describes that as an ECC block size within NAND
> pages whose supported sizes start at 1024 bytes. It does not document a
> 512-byte NAND page mode.
>
> [...]
Applied to nand/next, thanks!
[1/1] mtd: rawnand: sunxi: reject ECC maximization on small pages
commit: a3c84084a73e170374b7dd493947efdef4ee57bc
Patche(s) should be available on mtd/linux.git and will be
part of the next PR (provided that no robot complains by then).
Kind regards,
Miquèl