mtd/drivers/mtd/nand diskonchip.c,1.4,1.5

David Woodhouse dwmw2 at infradead.org
Mon Aug 25 06:34:43 EDT 2003


Update of /home/cvs/mtd/drivers/mtd/nand
In directory phoenix.infradead.org:/tmp/cvs-serv3100

Modified Files:
	diskonchip.c 
Log Message:
Add block_bad method, faked at the moment -- at least to prevent the
checking of byte 5 of OOB area from causing false positives.


Index: diskonchip.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/nand/diskonchip.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- diskonchip.c	11 Jul 2003 15:06:42 -0000	1.4
+++ diskonchip.c	25 Aug 2003 10:34:41 -0000	1.5
@@ -370,6 +370,12 @@
 	return 1; 
 }	
 
+static int doc200x_block_bad(struct mtd_info *mtd, unsigned long block)
+{
+	/* FIXME: Look it up in the BBT */
+	return 0;
+}
+
 struct doc_priv mydoc = {
 	.physadr = 0xd4000,
 	.curfloor = -1,
@@ -385,6 +391,7 @@
 	.hwcontrol = doc200x_hwcontrol,
 	.dev_ready = doc200x_dev_ready,
 	.waitfunc = doc200x_wait,
+	.block_bad = doc200x_block_bad,
 	.eccmode = NAND_ECC_SOFT,
 	.data_buf = mydatabuf,
 };




More information about the linux-mtd-cvs mailing list