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 21:29:18 -0600 [thread overview]
Message-ID: <m3n0fs5o4x.fsf@maxwell.lnxi.com> (raw)
In-Reply-To: <200307052313.13389.joshua@joshuawise.com>
Joshua Wise <joshua@joshuawise.com> writes:
> On Saturday 05 July 2003 10:50 pm, Eric W. Biederman wrote:
> > gen_probe_chip is one case where the cfi and the jedec case are
> > common. Warts are there but it is a common case. And handling
> > the various combinations of interleaved chips and various word
> > sizes is tricky, and is quite easy for people who don't need that
> > logic to get it wrong if it is not handled in common.
>
> Really? I think it would be better to just probe all the unlock addresses in
> order instead of probing interleaves, etc
There is more work to do when chips are interleaved. And that
extra work is non-obvious. In the current setup almost everything
looks like you have only a single chip, but that is by careful design.
In particular if you have 2 8bit devices on a 16bit bus, a 16bit
read will return one byte from each device.
It happens that jedec_probe_chip is also guessing unlock addresses
based upon the chip configuration, but that is an almost entirely
different issue. That part of the code can be removed with no ill
effects. cfi_send_gen_cmd already handles the issues with addresses
caused by interleaved devices.
> > Sorry, I'm not. Submitting patches for review is another good
> > way of accomplishing the same thing, and it is more economical
> > of other peoples time. This is a weekend and one of my rare moments
> > with free time. Thayne Harbaugh should be able to do just as good
> > a job at answering your questions and he has a little more time
> > than me.
>
> Understood, I can appreciate that :) Who is Thayne Harbaugh? *pokes Thayne
> with a sharp object to call their attention to the discussion*
He is a coworker, and currently is active making certain jedec_probe
works in a lot of corner cases. He is the guy who put all of the FIXME's
in the code. You probably won't here from him until Monday though.
> > Seriously all you should need to do is to take the loop in
> > jedec_probe_chip where it loops through some unlock address and have
> > it explicitly loop through all of the combinations, or at least enough
> > of them until a match is found. Look for the retry label. It is a
> > significant code change but it should be contained to just that one spot.
>
> I'll take a look into that.
Have fun.
Eric
next prev parent reply other threads:[~2003-07-06 3:29 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 ` jedec_probe.c Eric W. Biederman
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 ` Eric W. Biederman [this message]
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=m3n0fs5o4x.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