From: David Woodhouse <dwmw2@infradead.org>
To: psionic@psionic.de
Cc: linux-mtd@lists.infradead.org
Subject: Re: erase / interrupts
Date: Mon, 21 May 2001 13:32:34 +0100 [thread overview]
Message-ID: <21422.990448354@redhat.com> (raw)
In-Reply-To: <20010521142827.A4829@psionic.de>
psionic@psionic.de said:
> I have two questions. First of all, what happens to the interrupts
> during an erase? Are they disabled?
That's entirely dependent on the driver. In general, interrupts _shouldn't_
be disabled. They aren't disabled in the cfi_cmdset_000[12] drivers.
The erase method may sleep. And it may return immediately, calling the
erase completion callback later, from a timer. That isn't implemented yet.
Of course, it's entirely permitted to do both.
> The other one is, what happens if the power fails during a erase/write.
> Does the init-code handle the reset of the chip?
Yes, it should do. It's up the the application to work out the the sector
in question was partially erased and erase it properly. See the marker
nodes in JFFS2.
--
dwmw2
prev parent reply other threads:[~2001-05-21 12:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-05-21 12:28 erase / interrupts Jochen Schaeuble
2001-05-21 12:32 ` 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=21422.990448354@redhat.com \
--to=dwmw2@infradead.org \
--cc=linux-mtd@lists.infradead.org \
--cc=psionic@psionic.de \
/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