mtd/drivers/mtd/devices docprobe.c,1.37,1.38
David Woodhouse
dwmw2 at infradead.org
Mon Jun 30 05:21:57 EDT 2003
Update of /home/cvs/mtd/drivers/mtd/devices
In directory phoenix.infradead.org:/tmp/cvs-serv19066
Modified Files:
docprobe.c
Log Message:
Try to fix probe for DiskOnChip 2000 with newer ASIC
Index: docprobe.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/devices/docprobe.c,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -r1.37 -r1.38
--- docprobe.c 30 Jun 2003 09:01:46 -0000 1.37
+++ docprobe.c 30 Jun 2003 09:21:54 -0000 1.38
@@ -135,6 +135,12 @@
window, DOCControl);
#endif /* !DOC_PASSIVE_PROBE */
+ /* We need to read the ChipID register four times. For some
+ newer DiskOnChip 2000 units, the first three reads will
+ return the DiskOnChip Millennium ident. Don't ask. */
+ ReadDOC(window, ChipID);
+ ReadDOC(window, ChipID);
+ ReadDOC(window, ChipID);
ChipID = ReadDOC(window, ChipID);
switch (ChipID) {
More information about the linux-mtd-cvs
mailing list