public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: David Woodhouse <dwmw2@infradead.org>
To: gleixner@autronix.de
Cc: "John Hall" <John.Hall@optionexist.co.uk>, linux-mtd@lists.infradead.org
Subject: Re: JFFS2 NAND flash support
Date: Thu, 28 Mar 2002 10:01:19 +0000	[thread overview]
Message-ID: <26882.1017309679@redhat.com> (raw)
In-Reply-To: <200203281000.g2SA0qG16192@thomas.tec.autronix.de>

John.Hall@optionexist.co.uk said:
>  Our hardware interface is a btit weird (ALE and CLE are controlled by
> address lines...). I also can get interrupts from the busy pin, so
> I've changed the code so it doesn't do busy waits as nand.c does.

Good. You can actually implement the async erases that the MTD erase API 
was designed for.

You return zero from the erase() function to indicate that the request was 
started OK, then later you set the instr->state to indicate whether the 
erase succeeded or not, and call the callback.

The only thing to beware of is that users will currently not expect the 
callback to be called in interrupt context; only in bottom half context - 
and I'm thinking of changing that to allow only _process_ context. You can 
use schedule_task() to schedule the callback from the interrupt handler.

--
dwmw2

  reply	other threads:[~2002-03-28 10:01 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-28  9:41 JFFS2 NAND flash support John Hall
2002-03-28 10:00 ` Thomas Gleixner
2002-03-28 10:01   ` David Woodhouse [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-04-02 14:56 John Hall
     [not found] <541025071C7AC24C84E9F82296BB9B950804CD@OPTEX1.optex.local>
2002-03-28 18:12 ` Thomas Gleixner
2002-03-28 17:23 John Hall
2002-03-28 17:18 ` David Woodhouse
2002-03-27 17:42 John Hall
2002-03-27 18:16 ` Thomas Gleixner
2002-03-27 18:26   ` David Woodhouse
2002-03-27 19:10     ` Thomas Gleixner

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=26882.1017309679@redhat.com \
    --to=dwmw2@infradead.org \
    --cc=John.Hall@optionexist.co.uk \
    --cc=gleixner@autronix.de \
    --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