[PATCH v1] mtd: rawnand: meson: fix OOB available bytes for ECC
Miquel Raynal
miquel.raynal at bootlin.com
Wed Jul 12 07:08:53 PDT 2023
On Wed, 2023-07-05 at 06:52:10 UTC, Arseniy Krasnov wrote:
> It is incorrect to calculate number of OOB bytes for ECC engine using
> some "already known" ECC step size (1024 bytes here). Number of such
> bytes for ECC engine must be whole OOB except 2 bytes for bad block
> marker, while proper ECC step size and strength will be selected by
> ECC logic.
>
> Fixes: 8fae856c5350 ("mtd: rawnand: meson: add support for Amlogic NAND flash controller")
> Cc: <Stable at vger.kernel.org>
> Signed-off-by: Arseniy Krasnov <AVKrasnov at sberdevices.ru>
Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git mtd/fixes, thanks.
Miquel
More information about the linux-amlogic
mailing list