From: David Woodhouse <dwmw2@infradead.org>
To: "Joakim Tjernlund" <Joakim.Tjernlund@lumentis.se>
Cc: linux-mtd@lists.infradead.org
Subject: Re: write suspend and/or erase suspend
Date: Fri, 02 Aug 2002 10:42:43 +0100 [thread overview]
Message-ID: <1236.1028281363@redhat.com> (raw)
In-Reply-To: <003b01c23a06$c83c3940$0200a8c0@telia.com>
Joakim.Tjernlund@lumentis.se said:
> Yes, it's silly but can it happen by mistake? The flash state machine
> may be confused if an access is made during suspend.
You'll get a buffer full of status bits, I expect. Doesn't matter -- the
contents of the block at that time are undefined because they're in the
middle of an erase.
> hmm, my modified driver also supports "suspend erase to do a write".
> Could that be a problem?
Again, only if someone's trying to write to a block they're currently
trying to erase -- which they shouldn't be doing.
We _should_ be checking for these things in the driver, and we _definitely_
have to do so before start suspending writes to perform reads. But at the
moment, the only way a user could trigger wrong behaviour is if they're
doing something bloody stupid anyway.
--
dwmw2
prev parent reply other threads:[~2002-08-02 9:42 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-31 23:02 jffs2_scan_eraseblock() - errors Curtis, Allen
2002-08-01 10:44 ` David Woodhouse
2002-08-01 20:33 ` write suspend and/or erase suspend Joakim Tjernlund
2002-08-01 23:31 ` David Woodhouse
2002-08-02 9:27 ` Joakim Tjernlund
2002-08-02 9:42 ` David Woodhouse [this message]
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=1236.1028281363@redhat.com \
--to=dwmw2@infradead.org \
--cc=Joakim.Tjernlund@lumentis.se \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.