mtd: cfi_cmdset_0002: add 0xFF intolerance for M29W128G
authorMassimo Cirillo <maxcir@gmail.com>
Thu, 3 Sep 2009 14:34:39 +0000 (16:34 +0200)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Sat, 19 Sep 2009 21:18:43 +0000 (14:18 -0700)
commit23af51ecfb04ff65bae51bd8e2270f4449abc789
tree32ba264b7afe040e677106f966371f277744e30d
parent6ad08ddd9e8b85ad6c49eeb6c5d940ccdd119bde
mtd: cfi_cmdset_0002: add 0xFF intolerance for M29W128G

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.
This fix solves also the cause of the fixup_M29W128G_write_buffer() fix,
that can be removed now.
The following patch applies to 2.6.30 kernel.

Signed-off-by: Massimo Cirillo <maxcir@gmail.com>
Acked-by: Alexey Korolev <akorolev@infradead.org>
Cc: stable@kernel.org
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/chips/cfi_cmdset_0002.c
drivers/mtd/chips/cfi_util.c [changed mode: 0644->0755]