DiskOnChip MD2202-D256

David Woodhouse dwmw2 at infradead.org
Mon Jun 30 05:05:41 EDT 2003


On Fri, 2003-05-23 at 07:38, Oskar Stolc wrote:
> Hi,
> 
> 
> I'm just trying to install DiskOnChip MD2202-D256 flash disk on my
> 2.4.21-rc2 linux. While loading modul by command
> 	'modprobe docprobe'
> 	
> these messages occurred on my screen:
> 
> DiskOnChip Millenium found at address 0xE0000

Please could you try the following patch:

Index: drivers/mtd/devices/docprobe.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/devices/docprobe.c,v
retrieving revision 1.37
diff -u -p -r1.37 docprobe.c
--- drivers/mtd/devices/docprobe.c	30 Jun 2003 09:01:46 -0000	1.37
+++ drivers/mtd/devices/docprobe.c	30 Jun 2003 09:04:41 -0000
@@ -135,6 +135,12 @@ static inline int __init doccheck(unsign
 		 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) {


-- 
dwmw2




More information about the linux-mtd mailing list