]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 5 Oct 2009 16:31:52 +0000 (09:31 -0700)
commitd3b56d9524f374e6e9ccd66171cde8abf462b19a
treefda7595823d8c0c3d39ae4a5578c396c9d94f8af
parentb4a665c77baee92e5d3e7bac5e1ac61f5003ff28
mtd: cfi_cmdset_0002: add 0xFF intolerance for M29W128G

commit 23af51ecfb04ff65bae51bd8e2270f4449abc789 upstream.

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>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/mtd/chips/cfi_cmdset_0002.c
drivers/mtd/chips/cfi_util.c