Skip to content
/ linux Public

Commit 8e875cf

Browse files
andreascianSasha Levin
authored andcommitted
mtd: rawnand: pl353: Fix software ECC support
[ Upstream commit 89b831e ] 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: 08d8c62 ("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>
1 parent f5da4c2 commit 8e875cf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/mtd/nand/raw/pl35x-nand-controller.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -976,6 +976,7 @@ static int pl35x_nand_attach_chip(struct nand_chip *chip)
976976
fallthrough;
977977
case NAND_ECC_ENGINE_TYPE_NONE:
978978
case NAND_ECC_ENGINE_TYPE_SOFT:
979+
chip->ecc.write_page_raw = nand_monolithic_write_page_raw;
979980
break;
980981
case NAND_ECC_ENGINE_TYPE_ON_HOST:
981982
ret = pl35x_nand_init_hw_ecc_controller(nfc, chip);

0 commit comments

Comments
 (0)