[PATCH] [MTD] CHIPS: 0xFF intolerance for M29W128G
Jamie Lokier
jamie at shareable.org
Wed Aug 26 13:55:03 EDT 2009
massimo cirillo wrote:
> From: Massimo Cirillo <maxcir at gmail.com>
>
> The M29W128G Numonyx flash devices are intolerant to any 0xFF command:
> in the Cfi_util.c the function cfi_qry_mode_off() (that resets the device
> after the autoselect mode) must have a 0xF0 command after the 0xFF command.
> Intel-like devices are not influenced by a 0xF0 command.
> This fix solves also the cause of the fixup_M29W128G_write_buffer() fix,
> that can be commented out now.
> The following patch applies to 2.6.30 kernel.
This change was discussed 1 year ago:
http://lists.infradead.org/pipermail/linux-mtd/2008-August/022497.html
The conclusion was that 0xf0 after 0xff might not be safe for some
chips ("early revisions of L30"), but nobody could confirm which
chips, so Alexey Korolov suggested staying safe and using fixup
functions.
I'm inclined to think a per-manufacturer (ignoring chip-id) reset
function would be better than the attempt to poke several different
commands at a chip all mixed together in a careful order, knowing that
some commands break some chips but later commands fix them again.
-- Jamie
More information about the linux-mtd
mailing list