From: David Woodhouse <dwmw2@infradead.org>
To: Stephane Laroche <stephane.laroche@colubris.com>
Cc: mtd@infradead.org
Subject: Re: Erasing more than one sector at a time?
Date: Tue, 01 Aug 2000 10:25:16 +0100 [thread overview]
Message-ID: <12989.965121916@cygnus.co.uk> (raw)
In-Reply-To: <3985C29C.8F37EBC3@colubris.com>
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
next prev parent reply other threads:[~2000-08-01 9:25 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 [this message]
2000-08-01 16:07 ` Stephane Laroche
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=12989.965121916@cygnus.co.uk \
--to=dwmw2@infradead.org \
--cc=mtd@infradead.org \
--cc=stephane.laroche@colubris.com \
/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