Commit d357b940 authored by Boris BREZILLON's avatar Boris BREZILLON Committed by Andreas Bießmann
Browse files

mtd: atmel_nand: Disable subpage NAND write when using Atmel PMECC

Disable subpage write when using PMECC to prevent buggy partial page write.

This fix has been taken from linux sources (see commit
Signed-off-by: default avatarBoris BREZILLON <>
Acked-by: default avatarJosh Wu <>
Signed-off-by: default avatarAndreas Bießmann <>
parent 97b2043d
......@@ -882,6 +882,7 @@ static int atmel_pmecc_nand_init_params(struct nand_chip *nand,
return -ENOMEM;
nand->options |= NAND_NO_SUBPAGE_WRITE;
nand->ecc.read_page = atmel_nand_pmecc_read_page;
nand->ecc.write_page = atmel_nand_pmecc_write_page;
nand->ecc.strength = cap;
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