mirror of https://gitee.com/openkylin/linux.git
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: Chris Packham <chris.packham@alliedtelesis.co.nz> Reviewed-by: Boris Brezillon <boris.brezillon@bootlin.com> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
This commit is contained in:
parent
d7d9f8ec77
commit
ed6d0285f8
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue