Patchwork [2/2] mtd: gpmi-nand: use erased-page bitflip check

login
register
mail settings
Submitter Brian Norris
Date March 11, 2014, 9:11 a.m.
Message ID <1394529112-9659-2-git-send-email-computersforpeace@gmail.com>
Download mbox | patch
Permalink /patch/328995/
State New
Headers show

Comments

Brian Norris - March 11, 2014, 9:11 a.m.
GPMI NAND cannot correct bitflips in unprogrammed pages.

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
---
Untested, but perhaps this can replace the need for [1]

[1] http://lists.infradead.org/pipermail/linux-mtd/2014-January/051513.html

 drivers/mtd/nand/gpmi-nand/gpmi-nand.c | 1 +
 1 file changed, 1 insertion(+)

Patch

diff --git a/drivers/mtd/nand/gpmi-nand/gpmi-nand.c b/drivers/mtd/nand/gpmi-nand/gpmi-nand.c
index bb77f750e75a..f7da1d56a1b2 100644
--- a/drivers/mtd/nand/gpmi-nand/gpmi-nand.c
+++ b/drivers/mtd/nand/gpmi-nand/gpmi-nand.c
@@ -1698,6 +1698,7 @@  static int gpmi_nand_init(struct gpmi_nand_data *this)
 	chip->badblock_pattern	= &gpmi_bbt_descr;
 	chip->block_markbad	= gpmi_block_markbad;
 	chip->options		|= NAND_NO_SUBPAGE_WRITE;
+	chip->options		|= NAND_ECC_NEED_CHECK_FF;
 	if (of_get_nand_on_flash_bbt(this->dev->of_node))
 		chip->bbt_options |= NAND_BBT_USE_FLASH | NAND_BBT_NO_OOB;