goofy mtd m25p80 patches in GIT ...
David Brownell
david-b at pacbell.net
Mon Oct 20 04:30:49 EDT 2008
On Monday 20 October 2008, Chen Gong-B11801 wrote:
> I prefer to the first opinion -- renaming 'erase_block' to 'erase_chip',
> it looks more straightforward
*AND* fixing the name of the operation.
The pre-existing erase operations were:
#define OPCODE_BE_4K 0x20 /* Erase 4KiB block */
#define OPCODE_BE_32K 0x52 /* Erase 32KiB block */
#define OPCODE_SE 0xd8 /* Sector erase (usually 64KiB) */
So I'm quite puzzled why you would call the chip erase
opcode a "block erase" opcode ... it's not a 4K block,
not a 32K block, not a sector (of, usually, 64K).
It's more typically something like multiple MBytes.
Having read or skimmed several dozen SPI flash specs,
none of them called chip erase a "block erase" operation.
More information about the linux-mtd
mailing list