jedec_probe.c
Thayne Harbaugh
tharbaugh at lnxi.com
Mon Jul 7 10:51:19 EDT 2003
On Fri, 2003-07-04 at 20:32, Joshua Wise wrote:
> I've added a new flash chip to the jedec_probe.c definitions, and it seems
> that it's throwing back errors that the unlock codes don't match.
Smells like the unlock seeds at the start of jedec_probe_chip() are
incorrect. I've expected this to turn up a problem eventually.
> I've
> tracked this down to jedec_probe_chip's cfi->addr_unlock* garbage - it does
> look like that function will need to be rewritten. Has anyone already started
> this, or should I just go ahead?
I have yet to start. I know it needs to be reworked (per the FIXME
comment). I don't expect to get back to working on MTD code until
middle to the end of this week. I have this and a pile of other fixes
that need to go in plus some patches that Carolyn at Tektronixs sent me.
If you are motivated then send some patches with some fixes. The unique
unlock addresses are all enumerated in unlock_addrs[]. This could be
used as the list to iterate through. The current seeds try to take
insight into the type of device (8, 16, etc.) being probed to select the
set of addresses to probe. While this approach is interesting, I'm not
sure if it is good policy unless there is an obvious, bullet-proof
association that can be drawn between device types and modes and probe
addresses.
PS. Yeah, I see that there's a long thread strung out here. I'm going
to respond to each email rather than try to sum everything up in a
single reply. Replying to each email makes it easier to reply to each
point in the topic and gives a better continuity to the archive.
--
Thayne Harbaugh
Linux Networx
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: This is a digitally signed message part
Url : http://lists.infradead.org/pipermail/linux-mtd/attachments/20030707/1df757be/attachment.bin
More information about the linux-mtd
mailing list