[PATCH 2/2] drivers/mtd/devices/m25p80.c: Fix whole device erase
Artem Bityutskiy
dedekind1 at gmail.com
Fri Sep 21 07:44:16 EDT 2012
On Mon, 2012-09-03 at 18:19 +0200, Cédric Cano wrote:
> From: Cédric Cano <ccano at interfaceconcept.com>
>
> There are two ways to erase SPI Flash devices: sector per sector or the
> entire Flash (used when MTD partition is the whole Flash).
>
> When the whole Flash is erased, the SPI command is sent to the device
> and the erase function ends. Then, when another access (read, write or
> erase) is done, a wait of busy is performed that fails because of Flash
> erase time (can be more than 30s in case of whole erase).
>
> This patch removes chip erase and use only sector per sector erase to
> erase the chip. When erase is performed, Flash accesses can be done.
Please, re-send the patch with a better commit message which not only
explains _what_ you do, but also _why_ you do this, which problem you
solve, and what is the impact of the patch.
--
Best Regards,
Artem Bityutskiy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://lists.infradead.org/pipermail/linux-mtd/attachments/20120921/5e0fa192/attachment-0001.sig>
More information about the linux-mtd
mailing list