mtd/drivers/mtd/chips cfi_cmdset_0002.c,1.115,1.116
gleixner at infradead.org
gleixner at infradead.org
Tue May 24 09:29:46 EDT 2005
Update of /home/cvs/mtd/drivers/mtd/chips
In directory phoenix.infradead.org:/tmp/cvs-serv24767
Modified Files:
cfi_cmdset_0002.c
Log Message:
[MTD] cfi_cmdset_0002: Fix broken status check
Index: cfi_cmdset_0002.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/chips/cfi_cmdset_0002.c,v
retrieving revision 1.115
retrieving revision 1.116
diff -u -r1.115 -r1.116
--- cfi_cmdset_0002.c 20 May 2005 03:28:23 -0000 1.115
+++ cfi_cmdset_0002.c 24 May 2005 13:29:42 -0000 1.116
@@ -1320,7 +1320,7 @@
cfi_spin_lock(chip->mutex);
}
/* Did we succeed? */
- if (chip_good(map, adr, map_word_ff(map))) {
+ if (!chip_good(map, adr, map_word_ff(map))) {
/* reset on all failures. */
map_write( map, CMD(0xF0), chip->start );
/* FIXME - should have reset delay before continuing */
More information about the linux-mtd-cvs
mailing list