[PATCH] oops in CVS

Fillod Stephane stephane.fillod at thomson.net
Tue Aug 12 09:08:33 EDT 2003


Hi,

Here's an obvious patch against current CVS which fixes an oops at
startup of CFI Amd/Fujitsu chips. The same fix was applied by Thomas
yesterday on Intel chips.

BTW, does anyone have done some work on Write Buffer Programming
for CFI Amd/Fujitsu chips? Any advice?


Cheerio,
Stephane

Note to the moderator: what's wrong with my headers to be considered 
as suspicious?


--- mtd/drivers/mtd/chips/cfi_cmdset_0002.c	Wed Jul 23 00:00:05 2003
+++ linux/drivers/mtd/chips/cfi_cmdset_0002.c	Tue Aug 12 14:44:49 2003
@@ -157,6 +157,9 @@
 		if (!extp)
 			return NULL;
 
+		/* Install our own private info structure */
+		cfi->cmdset_priv = extp;	
+
 		cfi_fixup(map, fixup_table);
 
 #ifdef DEBUG_CFI_FEATURES
@@ -185,7 +188,7 @@
 		}
 		/*
 		 * FIXME - These might already be setup (more correctly)
-		 * buy jedec_probe.c.
+		 * by jedec_probe.c.
 		 */
 		switch (cfi->device_type) {
 		case CFI_DEVICETYPE_X8:
@@ -209,9 +212,6 @@
 			printk(KERN_NOTICE "Eep. Unknown cfi_cmdset_0002
device type %d\n", cfi->device_type);
 			return NULL;
 		}
-
-		/* Install our own private info structure */
-		cfi->cmdset_priv = extp;	
 
 	} /* CFI mode */
 




More information about the linux-mtd mailing list