CFI MinorVersion 5 with P33 Strataflash

Eric BENARD ebenard at free.fr
Tue Feb 20 03:41:15 EST 2007


Hi,

I'm using Intel's Strataflash RC48F440090TB00 on an IXP465 and found
that this chip is returning a CFI MinorVersion of 5 which makes
read_pri_intelext return an error in cfi_cmdset_0001.c and prevent flash
detection.

The following patch is a workaround for this issue but I didn't find any
reference to this value of CFI MinorVersion, even in the datasheet
(which may not be up to date as P33 should be only the full 3V3 version
of P30).

After this change he flash is properly detected and everything is fine
with all the MTD layer.

Eric

diff -Nru -X /home/ebenard/dontdiff-osdl
linux-2.6.20_orig/drivers/mtd/chips/cfi_cmdset_0001.c
linux-2.6.20/drivers/mtd/chips/cfi_cmdset_0001.c
--- linux-2.6.20_orig/drivers/mtd/chips/cfi_cmdset_0001.c	2007-02-04
19:44:54.000000000 +0100
+++ linux-2.6.20/drivers/mtd/chips/cfi_cmdset_0001.c	2007-02-08
12:11:32.000000000 +0100
@@ -263,7 +263,7 @@
 		return NULL;

 	if (extp->MajorVersion != '1' ||
-	    (extp->MinorVersion < '0' || extp->MinorVersion > '4')) {
+	    (extp->MinorVersion < '0' || extp->MinorVersion > '5')) {
 		printk(KERN_ERR "  Unknown Intel/Sharp Extended Query "
 		       "version %c.%c.\n",  extp->MajorVersion,
 		       extp->MinorVersion);




More information about the linux-mtd mailing list