mtd: rawnand: marvell: Handle on-die ECC
authorChris Packham <chris.packham@alliedtelesis.co.nz>
Sun, 24 Jun 2018 22:44:43 +0000 (10:44 +1200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 2 Jul 2018 07:02:12 +0000 (09:02 +0200)
>From the controllers point of view this is the same as no or
software only ECC.

Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
Reviewed-by: Boris Brezillon <boris.brezillon@bootlin.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/mtd/nand/raw/marvell_nand.c

index ebb1d141b90000c069b0634fe0a3c4d5d5f842d4..ba6889bbe802d4de967e82c24cf857ebf7ee612d 100644 (file)
@@ -2157,6 +2157,7 @@ static int marvell_nand_ecc_init(struct mtd_info *mtd,
                break;
        case NAND_ECC_NONE:
        case NAND_ECC_SOFT:
+       case NAND_ECC_ON_DIE:
                if (!nfc->caps->is_nfcv2 && mtd->writesize != SZ_512 &&
                    mtd->writesize != SZ_2K) {
                        dev_err(nfc->dev, "NFCv1 cannot write %d bytes pages\n",