mtd/drivers/mtd/devices doc2000.c,1.56,1.57
David Woodhouse
dwmw2 at infradead.org
Wed Nov 5 06:32:25 EST 2003
Update of /home/cvs/mtd/drivers/mtd/devices
In directory phoenix.infradead.org:/tmp/cvs-serv30268
Modified Files:
doc2000.c
Log Message:
Add missing delay in _DoC_WaitReady() loop. Patch from Dave Dillow.
Index: doc2000.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/devices/doc2000.c,v
retrieving revision 1.56
retrieving revision 1.57
diff -u -r1.56 -r1.57
--- doc2000.c 5 Nov 2003 10:51:37 -0000 1.56
+++ doc2000.c 5 Nov 2003 11:32:22 -0000 1.57
@@ -96,6 +96,10 @@
/* Out-of-line routine to wait for chip response */
while (!(ReadDOC(docptr, CDSNControl) & CDSN_CTRL_FR_B)) {
+ /* issue 2 read from NOP register after reading from CDSNControl register
+ see Software Requirement 11.4 item 2. */
+ DoC_Delay(doc, 2);
+
if (time_after(jiffies, timeo)) {
DEBUG(MTD_DEBUG_LEVEL2, "_DoC_WaitReady timed out.\n");
return -EIO;
More information about the linux-mtd-cvs
mailing list