[PATCH] mtd: denali: disable usage of subpages

Sebastian Andrzej Siewior bigeasy at linutronix.de
Wed Apr 30 05:46:41 PDT 2014


I use this driver on an Altera SoC (not MRST) and its ECC algorithm
does not compute 0xff ECC of an empty page. That problem can be easily
noticed if ubifs is used. Therefore I disable subpages support.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy at linutronix.de>
---
I can't test if this is also the case for MRST or not.

 drivers/mtd/nand/denali.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/mtd/nand/denali.c b/drivers/mtd/nand/denali.c
index c07cd57..44f2c8b 100644
--- a/drivers/mtd/nand/denali.c
+++ b/drivers/mtd/nand/denali.c
@@ -1524,6 +1524,8 @@ int denali_init(struct denali_nand_info *denali)
 	denali->nand.options |= NAND_SKIP_BBTSCAN;
 	denali->nand.ecc.mode = NAND_ECC_HW_SYNDROME;
 
+	denali->nand.options |= NAND_NO_SUBPAGE_WRITE;
+
 	/* Denali Controller only support 15bit and 8bit ECC in MRST,
 	 * so just let controller do 15bit ECC for MLC and 8bit ECC for
 	 * SLC if possible.
-- 
1.9.2




More information about the linux-mtd mailing list