public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: David Woodhouse <dwmw2@infradead.org>
To: "Derek Ross" <dross@iders.ca>
Cc: linux-mtd@lists.infradead.org
Subject: Re: Are erase suspends possible?
Date: Wed, 03 Apr 2002 01:38:39 +0100	[thread overview]
Message-ID: <19030.1017794319@redhat.com> (raw)
In-Reply-To: <005701c1da70$1a0370f0$87657bc8@athlon>

dross@iders.ca said:
> I'm looking at a recent version, and it has the function
> "cfi_intelext_suspend". 

That's for power management.


> "do_erase_oneblock_dont_wait", which doesn't wait for the erase to
> finish, and returns immediately,

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.

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.

--
dwmw2

  reply	other threads:[~2002-04-03  0:39 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 [this message]
2002-04-03 15:35       ` Derek Ross
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=19030.1017794319@redhat.com \
    --to=dwmw2@infradead.org \
    --cc=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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox