From: Stephane Laroche <stephane.laroche@colubris.com>
To: David Woodhouse <dwmw2@infradead.org>
Cc: mtd@infradead.org
Subject: Re: Erasing more than one sector at a time?
Date: Tue, 01 Aug 2000 12:07:44 -0400 [thread overview]
Message-ID: <3986F5D0.AE69B670@colubris.com> (raw)
In-Reply-To: 12989.965121916@cygnus.co.uk
Obviously, my mistake. I didn't realize I had to have the erase size be a
multiple of a sector size. Sometimes, I just can't read code properly (an
it wasn't even 3 AM).
Thanks,
-Stephane
David Woodhouse wrote:
> stephane.laroche@colubris.com said:
> > I'm wondering why the parameter validation at the start of those
> > function specifically prohibits erasing more than one sector. Is this
> > because the interface is defined this way or is it an oversight?
>
> Unless I'm smoking crack, the CFI command set code _does_ support erases
> longer than one erase block. The three checks which could cause it to
> return EINVAL are:
> 1. start address must be erase-block-aligned
> 2. length needs to be a multiple of erase block size.
> 3. start + length must not exceed the _total_ size of the device.
>
> The DiskOnChip code is different, but that's been/being fixed - depending
> on whether the patch has hit the CVS tree yet or not.
>
> --
> dwmw2
To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org
prev parent reply other threads:[~2000-08-01 16:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-07-31 18:17 Erasing more than one sector at a time? Stephane Laroche
2000-08-01 9:25 ` David Woodhouse
2000-08-01 16:07 ` Stephane Laroche [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=3986F5D0.AE69B670@colubris.com \
--to=stephane.laroche@colubris.com \
--cc=dwmw2@infradead.org \
--cc=mtd@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.