From: David Woodhouse <dwmw2@infradead.org>
To: Takashi YOSHII <takasi-y@ops.dti.ne.jp>
Cc: linux-mtd@lists.infradead.org
Subject: Re: can't erase "sharp".
Date: Fri, 17 May 2002 10:00:30 +0100 [thread overview]
Message-ID: <15336.1021626030@redhat.com> (raw)
In-Reply-To: <20020517.011732.74751668.takasi-y@ops.dti.ne.jp>
takasi-y@ops.dti.ne.jp said:
> I'm using drivers/mtd/chip/sharp.c (I know it's "obsolete", though).
> And, found "eraseall" command doesn't work upon it. The operation
> stops at 0%, and the command never exit.
> I added few lines(see the patch below), and it works, perhaps... I'm
> not sure if it is correct (especially when signals received).
> Could someone tell me the right answer, please?
The second part of your patch was the correct one -- setting instr->state
to MTD_ERASE_DONE on completion. When the erase fails immediately, it's not
required to set instr->state to MTD_ERASE_FAILED. That's only necessary if
the chip driver does asynchronous operation, and returns from the erase
function before the operation has completed.
--
dwmw2
prev parent reply other threads:[~2002-05-17 9:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-05-16 16:17 can't erase "sharp" Takashi YOSHII
2002-05-16 16:12 ` Russ Dill
2002-05-17 9:00 ` 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=15336.1021626030@redhat.com \
--to=dwmw2@infradead.org \
--cc=linux-mtd@lists.infradead.org \
--cc=takasi-y@ops.dti.ne.jp \
/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.