From: David Woodhouse <dwmw2@infradead.org>
To: tharbaugh@lnxi.com
Cc: ben@fluff.org, linux-mtd@lists.infradead.org, ch@hpl.hp.com
Subject: Re: jedec_probe problems with 16bit devices
Date: Tue, 07 Sep 2004 16:08:38 +0100 [thread overview]
Message-ID: <1094569718.5122.22.camel@localhost.localdomain> (raw)
In-Reply-To: <1094564091.20769.350.camel@tubarao>
On Tue, 2004-09-07 at 07:34 -0600, Thayne Harbaugh wrote:
> On Sat, 2004-09-04 at 18:37 +0100, Ben Dooks wrote:
> > I have been trying to get an SST 39LF160 on an Simtec Electronics
> > EB2410ITX (aka Bast). I have found some problems with jedec_probe
> > with non-8bit devices.
>
> > 1) A number of functions are masking out bits from the command
> > addresses, but the cfi_send_gen_cmd() moves the addresses up
> > depending on the chip type, so the masking is not needed.
>
> Dave, can you comment on this? It seems like it was something that you
> worked with - something about not probing at unaligned addresses?
The probe code used to probe for impossible combinations at unaligned
addresses. So people hacked around it by masking out the lower bits. Now
we fixed the probe code. Those hacks can go.
> > 2) the cfi_send_gen_cmd() is called with CFI_DEVICETYPE_X8
> > instead of cfi->device_type, which causes the wrong accesses to
> > be generated to the chip.
>
> It seems like the CFI_DEVICETYPE_X8 was changed to cfi->device_type at
> one point and it broke some 16-bit chips.
>
> I think all of the CFI_DEVICETYPE_X8s were removed from jedec_probe.c
> 1.30, but then some were added back in at 1.36. I'm trying to find the
> discussion as to why this happened, but what I'm finding isn't very
> descriptive:
We need to agree --- either we can use cfi->device_type for all, or we
use CFI_DEVICETYPE_X8 for all, and we set the uaddr in the device table
accordingly.
I think we had CFI_DEVICETYPE_X8 so that we could hard-code different
addresses for different modes of the same chip, on the basis that the
addresses couldn't be calculated from a single entry in the chip table
and the cfi->device_type.
I think that's unnecessary though -- I think we should have only a
_single_ uaddr field in the device table, and use cfi->device_type with
it.
--
dwmw2
next prev parent reply other threads:[~2004-09-07 15:08 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-04 17:37 jedec_probe problems with 16bit devices Ben Dooks
2004-09-07 13:34 ` Thayne Harbaugh
2004-09-07 15:08 ` David Woodhouse [this message]
2004-09-07 23:52 ` Christopher Hoover
2004-09-13 13:12 ` Thayne Harbaugh
2004-09-14 22:46 ` Ben Dooks
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=1094569718.5122.22.camel@localhost.localdomain \
--to=dwmw2@infradead.org \
--cc=ben@fluff.org \
--cc=ch@hpl.hp.com \
--cc=linux-mtd@lists.infradead.org \
--cc=tharbaugh@lnxi.com \
/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