Commit 89b831eb authored by Andrea Scian's avatar Andrea Scian Committed by Miquel Raynal
Browse files

mtd: rawnand: pl353: Fix software ECC support



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: 08d8c621 ("mtd: rawnand: pl353: Add support for the ARM PL353 SMC NAND controller")
Signed-off-by: default avatarAndrea Scian <andrea.scian@dave.eu>
Cc: stable@kernel.org
Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
parent 0f8a2176
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -976,6 +976,7 @@ static int pl35x_nand_attach_chip(struct nand_chip *chip)
		fallthrough;
	case NAND_ECC_ENGINE_TYPE_NONE:
	case NAND_ECC_ENGINE_TYPE_SOFT:
		chip->ecc.write_page_raw = nand_monolithic_write_page_raw;
		break;
	case NAND_ECC_ENGINE_TYPE_ON_HOST:
		ret = pl35x_nand_init_hw_ecc_controller(nfc, chip);