All of lore.kernel.org
 help / color / mirror / Atom feed
* CFI MinorVersion 5 with P33 Strataflash
@ 2007-02-20  8:41 Eric BENARD
  0 siblings, 0 replies; only message in thread
From: Eric BENARD @ 2007-02-20  8:41 UTC (permalink / raw)
  To: linux-mtd

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);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-02-20  8:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-20  8:41 CFI MinorVersion 5 with P33 Strataflash Eric BENARD

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.