public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Eric BENARD <ebenard@free.fr>
To: linux-mtd@lists.infradead.org
Subject: CFI MinorVersion 5 with P33 Strataflash
Date: Tue, 20 Feb 2007 09:41:15 +0100	[thread overview]
Message-ID: <45DAB42B.5070703@free.fr> (raw)

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

                 reply	other threads:[~2007-02-20  8:41 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=45DAB42B.5070703@free.fr \
    --to=ebenard@free.fr \
    --cc=linux-mtd@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox