From: David Woodhouse <dwmw2@infradead.org>
To: Alexander Larsson <alex@cendio.se>
Subject: Re: New release of MTD code pending.
Date: Mon, 27 Mar 2000 16:22:29 +0100 [thread overview]
Message-ID: <10067.954170549@devel2.axiom.internal> (raw)
In-Reply-To: <Pine.LNX.3.96.1000327164508.26529C-100000@biffen.cendio.se>
alex@cendio.se said:
> When I fire away a flash erase, can i just continue working with the
> flash, content with knowing that if i do a read or write while the
> chip is erasing it will block? I thought so at first, and it would be
> the logical thing.
This is how it _should_ work. The hardware driver should keep track of when
each chip is busy erasing, and when it receives a new request for that chip,
it may block, or may decide to interrupt the erase (it must then restart the
erase itself).
> WTF is this?
Broken. Luckily, not even M-Systems can find examples of the device that code
is supposed to drive. I _think_ that the idea was "if we're currently erasing
this cell, then it's going to be all 0xFF, so there's no point in waiting
until it's done, we might as well use memset."
> Also, doc2000.c: doc_erase() doesn't seem to call the callback
> function at all.
Two reasons: firstly, like I said - I didn't remember how it worked, so I just
implemented doc_erase() synchronously. nftl.c relies on that, so would break if
you coded a new NAND device driver which wasn't synchronous (Patent issues
aside).
Secondly, it was easier to get something up and running without worrying about
threading - I've been putting off the threading of doc2000 / nftl until I'm
happy with the correctness of the NFTL code. But it's definitely on the TODO
list.
--
dwmw2
To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org
next prev parent reply other threads:[~2000-03-27 15:23 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-03-27 9:12 New release of MTD code pending David Woodhouse
2000-03-27 14:18 ` Alexander Larsson
2000-03-27 14:24 ` David Woodhouse
2000-03-27 14:31 ` Alexander Larsson
2000-03-27 14:38 ` David Woodhouse
2000-03-27 14:55 ` Alexander Larsson
2000-03-27 15:22 ` David Woodhouse [this message]
2000-03-27 15:54 ` Trevor Woolven
[not found] <Pine.LNX.3.96.1000327172759.26529E-100000@biffen.cendio.se>
2000-03-27 16:01 ` David Woodhouse
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=10067.954170549@devel2.axiom.internal \
--to=dwmw2@infradead.org \
--cc=alex@cendio.se \
/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