mtd/drivers/mtd/chips cfi_cmdset_0002.c,1.88,1.89

Thayne Harbaugh tharbaugh at lnxi.com
Fri Oct 17 17:49:07 EDT 2003


Update of /home/cvs/mtd/drivers/mtd/chips
In directory phoenix.infradead.org:/tmp/cvs-serv7563

Modified Files:
	cfi_cmdset_0002.c 
Log Message:
Forgot the switch for turning off buffered writes!

Index: cfi_cmdset_0002.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/chips/cfi_cmdset_0002.c,v
retrieving revision 1.88
retrieving revision 1.89
diff -u -r1.88 -r1.89
--- cfi_cmdset_0002.c	17 Oct 2003 21:46:25 -0000	1.88
+++ cfi_cmdset_0002.c	17 Oct 2003 21:49:04 -0000	1.89
@@ -35,6 +35,7 @@
 #include <linux/mtd/cfi.h>
 
 #define AMD_BOOTLOC_BUG
+#define FORCE_WORD_WRITE 0
 
 #ifdef CONFIG_MTD_CFI_AMDSTD_RETRY
 
@@ -366,7 +367,7 @@
 		else
 			mtd->erase = cfi_amdstd_erase_onesize;
 		mtd->read = cfi_amdstd_read;
-		if ( cfi->cfiq->BufWriteTimeoutTyp) {
+		if ( cfi->cfiq->BufWriteTimeoutTyp && !FORCE_WORD_WRITE) {
 			DEBUG(MTD_DEBUG_LEVEL1 "Using buffer write method\n" );
 			mtd->write = cfi_amdstd_write_buffers;
 		} else {




More information about the linux-mtd-cvs mailing list