diff options
author | Arseniy Krasnov <AVKrasnov@sberdevices.ru> | 2023-07-05 09:52:10 +0300 |
---|---|---|
committer | Miquel Raynal <miquel.raynal@bootlin.com> | 2023-07-12 13:39:47 +0200 |
commit | 7e6b04f9238eab0f684fafd158c1f32ea65b9eaa (patch) | |
tree | 1703dea8616644bfb93f2040c3c9f630e7dfac0b /scripts/clang-tools/gen_compile_commands.py | |
parent | d8403b9eeee66d5dd81ecb9445800b108c267ce3 (diff) |
mtd: rawnand: meson: fix OOB available bytes for ECC
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@vger.kernel.org>
Signed-off-by: Arseniy Krasnov <AVKrasnov@sberdevices.ru>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20230705065211.293500-1-AVKrasnov@sberdevices.ru
Diffstat (limited to 'scripts/clang-tools/gen_compile_commands.py')
0 files changed, 0 insertions, 0 deletions