mtd/drivers/mtd/chips cfi_cmdset_0001.c,1.112,1.113
David Woodhouse
dwmw2 at infradead.org
Thu Feb 6 10:20:16 EST 2003
Update of /home/cvs/mtd/drivers/mtd/chips
In directory phoenix.infradead.org:/tmp/cvs-serv11510
Modified Files:
cfi_cmdset_0001.c
Log Message:
Reenable erase suspend for write
Index: cfi_cmdset_0001.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/chips/cfi_cmdset_0001.c,v
retrieving revision 1.112
retrieving revision 1.113
diff -u -r1.112 -r1.113
--- cfi_cmdset_0001.c 31 Jan 2003 09:07:33 -0000 1.112
+++ cfi_cmdset_0001.c 6 Feb 2003 15:20:13 -0000 1.113
@@ -170,14 +170,17 @@
cfi_tell_features(extp);
#endif
-#ifndef CMDSET0001_ENABLE_ERASE_SUSPEND_ON_WRITE
-/* #define CMDSET0001_ENABLE_ERASE_SUSPEND_ON_WRITE if you want to try this function. */
+ if(extp->SuspendCmdSupport & 1) {
+//#define CMDSET0001_DISABLE_ERASE_SUSPEND_ON_WRITE
+#ifdef CMDSET0001_DISABLE_ERASE_SUSPEND_ON_WRITE
/* Some Intel Strata Flash prior to FPO revision C has bugs in this area */
- if(extp->SuspendCmdSupport & 1)
printk(KERN_WARNING "cfi_cmdset_0001: Suspend "
"erase on write disabled.\n");
- extp->SuspendCmdSupport &= ~1;
+ extp->SuspendCmdSupport &= ~1;
+#else
+ printk(KERN_NOTICE "cfi_cmdset_0001: Erase suspend on write enabled\n");
#endif
+ }
/* Install our own private info structure */
cfi->cmdset_priv = extp;
}
More information about the linux-mtd-cvs
mailing list