mtd/drivers/mtd/nand nand.c,1.21,1.22
gleixner at infradead.org
gleixner at infradead.org
Tue Apr 9 09:41:05 EDT 2002
Update of /home/cvs/mtd/drivers/mtd/nand
In directory phoenix.infradead.org:/tmp/cvs-serv10329/mtd/drivers/mtd/nand
Modified Files:
nand.c
Log Message:
nand_wait function repaired
Index: nand.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/nand/nand.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- nand.c 6 Apr 2002 13:48:10 -0000 1.21
+++ nand.c 9 Apr 2002 13:41:02 -0000 1.22
@@ -41,6 +41,9 @@
* - check pointers before accessing flash provided by
* John Hall (john.hall at optionexist.co.uk)
*
+ * 04-09-2002 Thomas Gleixner (gleixner at autronix.de)
+ * - nand_wait repaired
+ *
* $Id$
*
* This program is free software; you can redistribute it and/or modify
@@ -273,13 +276,13 @@
break;
}
this->cmdfunc (mtd, NAND_CMD_STATUS, -1, -1);
- if (readb (this->IO_ADDR_R) & 0x40);
+ if (readb (this->IO_ADDR_R) & 0x40)
break;
set_current_state (TASK_UNINTERRUPTIBLE);
add_wait_queue (&this->wq, &wait);
spin_unlock_bh (&this->chip_lock);
- schedule ();
+ schedule_timeout (1);
remove_wait_queue (&this->wq, &wait);
spin_lock_bh (&this->chip_lock);
}
More information about the linux-mtd-cvs
mailing list