mtd/drivers/mtd/devices docprobe.c,1.40,1.41
David Woodhouse
dwmw2 at infradead.org
Wed Dec 3 05:19:59 EST 2003
Update of /home/cvs/mtd/drivers/mtd/devices
In directory phoenix.infradead.org:/tmp/cvs-serv10651
Modified Files:
docprobe.c
Log Message:
Disable DoC2000TSOP
Index: docprobe.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/devices/docprobe.c,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -r1.40 -r1.41
--- docprobe.c 5 Nov 2003 10:51:37 -0000 1.40
+++ docprobe.c 3 Dec 2003 10:19:57 -0000 1.41
@@ -249,6 +249,12 @@
return;
if ((ChipID = doccheck(docptr, physadr))) {
+ if (ChipID == DOC_ChipID_Doc2kTSOP) {
+ /* Remove this at your own peril. The hardware driver works but nothing prevents you from erasing bad blocks */
+ printk(KERN_NOTICE "Refusing to drive DiskOnChip 2000 TSOP until Bad Block Table is correctly supported by INFTL\n");
+ iounmap((void *)docptr);
+ return;
+ }
docfound = 1;
mtd = kmalloc(sizeof(struct DiskOnChip) + sizeof(struct mtd_info), GFP_KERNEL);
More information about the linux-mtd-cvs
mailing list