]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mtd: rawnand: pl353: Fix software ECC support
authorAndrea Scian <andrea.scian@dave.eu>
Wed, 4 Feb 2026 17:41:44 +0000 (18:41 +0100)
committerSasha Levin <sashal@kernel.org>
Wed, 4 Mar 2026 12:21:23 +0000 (07:21 -0500)
commitead66f2ed16f3e61aea352f0094433ee05cf3e2d
treef550403fcc813e76a47e7165d5fb5a88123eea1a
parent9799f977759e427811d1844fa536e23b351e3411
mtd: rawnand: pl353: Fix software ECC support

[ Upstream commit 89b831ebdaca0df4ca3b226f7e7a1d1db1629060 ]

We need to set also write_page_raw in ecc structure to allow
choosing SW ECC instead of HW one, otherwise write operation fail.

Fixes: 08d8c62164a322 ("mtd: rawnand: pl353: Add support for the ARM PL353 SMC NAND controller")
Signed-off-by: Andrea Scian <andrea.scian@dave.eu>
Cc: stable@kernel.org
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/mtd/nand/raw/pl35x-nand-controller.c