mtd/drivers/mtd/nand diskonchip.c,1.4,1.5
David Woodhouse
dwmw2 at infradead.org
Mon Aug 25 06:34:43 EDT 2003
- Previous message: mtd/fs/jffs2 TODO,1.10,1.11 file.c,1.87,1.88 os-linux.h,1.29,1.30
super-v24.c,1.68,1.69 super.c,1.83,1.84 wbuf.c,1.35,1.36
- Next message: mtd/fs/jffs2 dir.c,1.77,1.78 file.c,1.88,1.89 gc.c,1.103,1.104
nodelist.h,1.95,1.96 os-linux.h,1.30,1.31 super-v24.c,1.69,1.70
wbuf.c,1.36,1.37 write.c,1.65,1.66
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
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,
};
- Previous message: mtd/fs/jffs2 TODO,1.10,1.11 file.c,1.87,1.88 os-linux.h,1.29,1.30
super-v24.c,1.68,1.69 super.c,1.83,1.84 wbuf.c,1.35,1.36
- Next message: mtd/fs/jffs2 dir.c,1.77,1.78 file.c,1.88,1.89 gc.c,1.103,1.104
nodelist.h,1.95,1.96 os-linux.h,1.30,1.31 super-v24.c,1.69,1.70
wbuf.c,1.36,1.37 write.c,1.65,1.66
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the linux-mtd-cvs
mailing list