aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/chips
diff options
context:
space:
mode:
authorNicolas Pitre <nico@cam.org>2005-03-16 17:41:09 -0500
committerThomas Gleixner <tglx@mtd.linutronix.de>2005-05-23 06:54:48 -0400
commit09c7933547e383ab89ee1b08ec86899bef3035cf (patch)
tree67c5e4d8fe6ed1262a15f4dbcf3c879e8916e5a7 /drivers/mtd/chips
parent3a70025047f90de2133744a8918e90fcf5a93366 (diff)
[MTD] cfi_cmdset_0001: Fix state after sync
oldstate has to be reset to FL_READY after sync completion. Signed-off-by: Nicolas Pitre <nico@cam.org> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'drivers/mtd/chips')
-rw-r--r--drivers/mtd/chips/cfi_cmdset_0001.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mtd/chips/cfi_cmdset_0001.c b/drivers/mtd/chips/cfi_cmdset_0001.c
index 92074ff9dac6..87554aae01e4 100644
--- a/drivers/mtd/chips/cfi_cmdset_0001.c
+++ b/drivers/mtd/chips/cfi_cmdset_0001.c
@@ -4,7 +4,7 @@
4 * 4 *
5 * (C) 2000 Red Hat. GPL'd 5 * (C) 2000 Red Hat. GPL'd
6 * 6 *
7 * $Id: cfi_cmdset_0001.c,v 1.169 2005/03/15 19:07:18 gleixner Exp $ 7 * $Id: cfi_cmdset_0001.c,v 1.170 2005/03/16 22:41:05 nico Exp $
8 * 8 *
9 * 9 *
10 * 10/10/2000 Nicolas Pitre <nico@cam.org> 10 * 10/10/2000 Nicolas Pitre <nico@cam.org>
@@ -1789,6 +1789,7 @@ static void cfi_intelext_sync (struct mtd_info *mtd)
1789 1789
1790 if (chip->state == FL_SYNCING) { 1790 if (chip->state == FL_SYNCING) {
1791 chip->state = chip->oldstate; 1791 chip->state = chip->oldstate;
1792 chip->oldstate = FL_READY;
1792 wake_up(&chip->wq); 1793 wake_up(&chip->wq);
1793 } 1794 }
1794 spin_unlock(chip->mutex); 1795 spin_unlock(chip->mutex);