From: ebiederman@lnxi.com (Eric W. Biederman)
To: Joshua Wise <joshua@joshuawise.com>
Cc: linux-mtd@lists.infradead.org
Subject: Re: jedec_probe.c
Date: 05 Jul 2003 20:11:21 -0600 [thread overview]
Message-ID: <m3el142yly.fsf@maxwell.lnxi.com> (raw)
In-Reply-To: <200307052157.06325.joshua@joshuawise.com>
Joshua Wise <joshua@joshuawise.com> writes:
> On Saturday 05 July 2003 7:19 pm, Eric W. Biederman wrote:
> > > But IMHO it does a bad job of doing it. It needs to go through each chip
> > > in order, and try each chip's unlock addresses in order, as opposed to
> > > guessing at unlock addresses based on interleave and chip type.
>
> Bah, I was just pissed off :), I meant go through each chip in the array.
Ok. My point is that there is no reason to go through each chip in the
array. We can just iterate through the unlock_addrs array, which
holds every unlock address.
> > I would hate to get to the point where the order of the table entries
> > matters. Magic table orders are very hard to maintain properly, and
> > very easy for one inattentive update to break. jedec_probe does get
> > a manufacturer id and a device id which makes it good enough that with
> > a few refinements it should be able to handle this. A better
> > algorithm for selecting the unlock addresses is certainly desirable,
> > and now we have a test case, where it actually matters.
>
> Right. This is what I mean - jedec_probe cannot use the generic probing
> functions that assume that we can query chips by doing something like Q/R/Y,
> it instead should loop.
We can and do have generic probe functions, in the jedec case.
It is a different probe than the cfi one but it is just as valid.
The challenge is that the query opcode needs a prefix for some chips
so we need to loop through all of the prefixes (unlock addresses) instead
of just some magic subset of them.
> > Does it work if you just hard code the address in jedec_probe_chip?
> > Just to confirm which piece needs to get fixed.
>
> I'd assume that it would. Is jedec_probe_chip used anywhere other than
> jedec_probe?
It shouldn't be, and the probes are just used at probe time. The
rest of the time their modules can even be unloaded if necessary.
Eric
next prev parent reply other threads:[~2003-07-06 2:11 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-05 2:32 jedec_probe.c Joshua Wise
2003-07-05 5:03 ` jedec_probe.c Joshua Wise
2003-07-05 13:38 ` jedec_probe.c Eric W. Biederman
2003-07-05 18:20 ` jedec_probe.c Joshua Wise
[not found] ` <200307051406.08109.joshua@joshuawise.com>
2003-07-05 23:19 ` jedec_probe.c Eric W. Biederman
2003-07-06 1:57 ` jedec_probe.c Joshua Wise
2003-07-06 2:11 ` Eric W. Biederman [this message]
2003-07-06 2:15 ` jedec_probe.c Joshua Wise
2003-07-06 2:50 ` jedec_probe.c Eric W. Biederman
2003-07-06 3:13 ` jedec_probe.c Joshua Wise
2003-07-06 3:29 ` jedec_probe.c Eric W. Biederman
2003-07-07 14:52 ` jedec_probe.c Thayne Harbaugh
2003-07-08 8:21 ` jedec_probe.c David Woodhouse
2003-07-08 15:08 ` jedec_probe.c Thayne Harbaugh
2003-07-08 7:48 ` jedec_probe.c David Woodhouse
2003-07-07 15:38 ` jedec_probe.c Thayne Harbaugh
2003-07-07 14:51 ` jedec_probe.c Thayne Harbaugh
-- strict thread matches above, loose matches on Subject: below --
2002-11-11 8:18 jedec_probe.c Holger Speck
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=m3el142yly.fsf@maxwell.lnxi.com \
--to=ebiederman@lnxi.com \
--cc=joshua@joshuawise.com \
--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