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

Brian Norris computersforpeace at gmail.com
Tue Mar 11 05:11:52 EDT 2014


GPMI NAND cannot correct bitflips in unprogrammed pages.

Signed-off-by: Brian Norris <computersforpeace at 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(+)

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;
 
-- 
1.8.3.2




More information about the linux-mtd mailing list