提交 22fd9a87 编写于 作者: T Thomas Gleixner 提交者: Thomas Gleixner

[MTD] cfi_cmdset_0002: Fix broken status check

Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
上级 f0827613
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* *
* This code is GPL * This code is GPL
* *
* $Id: cfi_cmdset_0002.c,v 1.115 2005/05/20 03:28:23 eric Exp $ * $Id: cfi_cmdset_0002.c,v 1.116 2005/05/24 13:29:42 gleixner Exp $
* *
*/ */
...@@ -1320,7 +1320,7 @@ static inline int do_erase_oneblock(struct map_info *map, struct flchip *chip, u ...@@ -1320,7 +1320,7 @@ static inline int do_erase_oneblock(struct map_info *map, struct flchip *chip, u
cfi_spin_lock(chip->mutex); cfi_spin_lock(chip->mutex);
} }
/* Did we succeed? */ /* 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. */ /* reset on all failures. */
map_write( map, CMD(0xF0), chip->start ); map_write( map, CMD(0xF0), chip->start );
/* FIXME - should have reset delay before continuing */ /* FIXME - should have reset delay before continuing */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册