public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH] mtd: nand: omap: save Bad-Block-Table (BBT) on device
@ 2014-07-23 11:54 Pekon Gupta
  2014-07-23 12:05 ` Ezequiel Garcia
  0 siblings, 1 reply; 8+ messages in thread
From: Pekon Gupta @ 2014-07-23 11:54 UTC (permalink / raw)
  To: Brian Norris
  Cc: Sekhar Nori, linux-mtd, Pekon Gupta, Ezequiel Garcia,
	Roger Quadros

This patch makes OMAP NAND driver to
- save Bad-Block-Table (BBT) on NAND Flash device
- scan on device BBT during probe

Signed-off-by: Pekon Gupta <pekon@ti.com>
---
 drivers/mtd/nand/omap2.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mtd/nand/omap2.c b/drivers/mtd/nand/omap2.c
index f0ed92e..2ad7451 100644
--- a/drivers/mtd/nand/omap2.c
+++ b/drivers/mtd/nand/omap2.c
@@ -1663,7 +1663,7 @@ static int omap_nand_probe(struct platform_device *pdev)
 	mtd->owner		= THIS_MODULE;
 	nand_chip		= &info->nand;
 	nand_chip->ecc.priv	= NULL;
-	nand_chip->options	|= NAND_SKIP_BBTSCAN;
+	nand_chip->bbt_options  |= NAND_BBT_USE_FLASH;
 
 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
 	nand_chip->IO_ADDR_R = devm_ioremap_resource(&pdev->dev, res);
-- 
1.8.5.1.163.gd7aced9

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-07-24 19:12 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-23 11:54 [PATCH] mtd: nand: omap: save Bad-Block-Table (BBT) on device Pekon Gupta
2014-07-23 12:05 ` Ezequiel Garcia
2014-07-23 16:26   ` Gupta, Pekon
2014-07-23 20:27     ` ezequiel
2014-07-24  1:54       ` Brian Norris
2014-07-24 13:40         ` Ezequiel Garcia
2014-07-24 19:11           ` Brian Norris
2014-07-24 17:56         ` Gupta, Pekon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox