Error in cfi_cmdset_0002.c

Armin Schindler acs at sysgo.de
Tue Jan 7 07:58:23 EST 2003


Hello,

the following patch fixes a "scheduling in interrupt" in case of
a write-complete timeout. The removed code already exists at the end
of the function which is also reached.

Regards,
Armin

Armin Schindler <acs at sysgo.de>
SYSGO AG
Am Pfaffenstein 14
D-55270 Klein-Winternheim / Germany
phone: +49 6136 9948-0
fax  : +49 6136 9948-10
http://www.sysgo.de
http://www.elinos.com

--------------------

--- cfi_cmdset_0002.c.orig	Mon Nov 18 00:00:05 2002
+++ cfi_cmdset_0002.c	Tue Jan  7 13:48:36 2003
@@ -550,10 +550,6 @@
 		} else {
 			printk(KERN_WARNING "Waiting for write to complete timed out in do_write_oneword.");        
 			
-			chip->state = FL_READY;
-			wake_up(&chip->wq);
-			cfi_spin_unlock(chip->mutex);
-			DISABLE_VPP(map);
 			ret = -EIO;
 		}
 	}






More information about the linux-mtd mailing list