From: ebiederman@lnxi.com (Eric W. Biederman)
To: David Woodhouse <dwmw2@infradead.org>
Cc: Alice Hennessy <ahennessy@mvista.com>, linux-mtd@lists.infradead.org
Subject: Re: Problem with cfi_probe.c and Intel chip
Date: 10 Jan 2002 18:03:24 -0700 [thread overview]
Message-ID: <m3sn9d8zs3.fsf@DLT.linuxnetworx.com> (raw)
In-Reply-To: <17564.1010702853@redhat.com>
David Woodhouse <dwmw2@infradead.org> writes:
> ahennessy@mvista.com said:
> > I just tried the latest code and discovered that the command used
> > before the query command and also to return to read mode in
> > cfi_probe.c has been changed to 0xF0 - it used to be 0xFF . The
> > board I'm testing on has an Intel strata chip and is not responding to
> > the query. If I use 0xFF, then everything is fine. AMD chips seems
> > to be happy with either command (
>
> I seem to recall someone complaining before, and having to change it. But
> if so, I don't see why it only came in with the jedec-probe stuff.
O.k. I just did a skim through the JEDEC 21c section 3.5 assuming most
of the time flash designers would follow a variant of the standard.
And at various points both 0xF0 and 0xFF are mentioned as a reset,
with perhaps a little preference towards 0xFF.
The probe algorithm is pretty much reset the chip, and then read it's
id. So there isn't a lot that can be simplified there.
We are pretty much probing for the jedec 1 byte command set
(intel) or the jedec multibyte command set (amd). With respect to the
single byte command set, we are already sending the nonsense byte
multibyte prefix and expecting it to ignore it. So expecting the
multibyte command set to ignore the reset for the single byte command
set is reasonable.
If we run into further problems we can detangle the single byte and
the multibyte command set probes.
> Three options:
> 1. Change it to 0xFF and see if anyone screams.
Well I just did remove 0xFF and see if anyone screams, I should have
looked closer but I thought it was an intel specific then, and nothing
I have required it. Though I admit 0xFF was not there originally.
> 2. Make it send both 0xFF and 0xF0.
So far I haven't heard of any breakage with this combination. And now
that I have double checked and discovered in some weird fashion that
they are both equally valid, it is probably safe to leave them both
in. At least until we hear of further breakage.
> 3. Make it work out what type of chip it's talking to and send the _right_
> command.
This suffers from extreme catch22.
Eric
next prev parent reply other threads:[~2002-01-11 0:52 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-01-10 22:26 Problem with cfi_probe.c and Intel chip Alice Hennessy
2002-01-10 22:47 ` David Woodhouse
2002-01-11 1:03 ` Eric W. Biederman [this message]
2002-01-11 2:06 ` Alice Hennessy
2002-01-11 20:27 ` Eric W. Biederman
2002-01-11 21:53 ` Alice Hennessy
2002-01-11 7:57 ` Jonas Holmberg
2002-01-10 23:05 ` Eric W. Biederman
-- strict thread matches above, loose matches on Subject: below --
2002-01-11 10:27 Jonas Holmberg
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=m3sn9d8zs3.fsf@DLT.linuxnetworx.com \
--to=ebiederman@lnxi.com \
--cc=ahennessy@mvista.com \
--cc=dwmw2@infradead.org \
--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