Commit ed6d0285 authored by Chris Packham's avatar Chris Packham Committed by Miquel Raynal

mtd: rawnand: marvell: Handle on-die ECC

>From the controllers point of view this is the same as no or
software only ECC.
Signed-off-by: default avatarChris Packham <chris.packham@alliedtelesis.co.nz>
Reviewed-by: default avatarBoris Brezillon <boris.brezillon@bootlin.com>
Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
parent d7d9f8ec
...@@ -2157,6 +2157,7 @@ static int marvell_nand_ecc_init(struct mtd_info *mtd, ...@@ -2157,6 +2157,7 @@ static int marvell_nand_ecc_init(struct mtd_info *mtd,
break; break;
case NAND_ECC_NONE: case NAND_ECC_NONE:
case NAND_ECC_SOFT: case NAND_ECC_SOFT:
case NAND_ECC_ON_DIE:
if (!nfc->caps->is_nfcv2 && mtd->writesize != SZ_512 && if (!nfc->caps->is_nfcv2 && mtd->writesize != SZ_512 &&
mtd->writesize != SZ_2K) { mtd->writesize != SZ_2K) {
dev_err(nfc->dev, "NFCv1 cannot write %d bytes pages\n", dev_err(nfc->dev, "NFCv1 cannot write %d bytes pages\n",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment