From: "Derek Ross" <dross@iders.ca>
To: <linux-mtd@lists.infradead.org>
Subject: Re: Are erase suspends possible?
Date: Wed, 3 Apr 2002 09:35:14 -0600 [thread overview]
Message-ID: <000f01c1db25$262b4f50$87657bc8@athlon> (raw)
In-Reply-To: 19030.1017794319@redhat.com
> dross said:
> > "do_erase_oneblock_dont_wait", which doesn't wait for the erase to
> > finish, and returns immediately,
> dwmw2 replied:
> You should not be looking in there. You should be calling the mtd->read(),
> mtd->write() and mtd->erase() functions. The latter is already permitted to
> return immediately, calling a caller-provided callback later on completion.
Is that callback capability available in userspace?
I'm looking in the file "util/erase.c" and it calls
an ioctl with an erase_info_t, which is a typedef of
erase_info_user, which doesn't have that callback
function pointer.
> The read function already suspends active erases to fulfil the read
> request. You can easily make the write function do the same, on chips that
> support it.
If I modified cfi_intelext_write_* to suspend erases in progress,
would that screw up the operation of the JFFS2? Or would I have
to supply a flag to turn that feature on and off depending
on if JFFS is running?
Thanks,
Derek Ross.
next prev parent reply other threads:[~2002-04-03 15:35 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-01 22:44 Are erase suspends possible? Derek Ross
2002-04-02 0:14 ` David Woodhouse
2002-04-02 17:59 ` Derek Ross
2002-04-03 0:38 ` David Woodhouse
2002-04-03 15:35 ` Derek Ross [this message]
2002-04-03 16:07 ` Joakim Tjernlund
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='000f01c1db25$262b4f50$87657bc8@athlon' \
--to=dross@iders.ca \
--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.