mtd/drivers/mtd/nand nand_base.c,1.116,1.117

gleixner at infradead.org gleixner at infradead.org
Thu Sep 23 18:44:24 EDT 2004


Update of /home/cvs/mtd/drivers/mtd/nand
In directory phoenix.infradead.org:/tmp/cvs-serv19126

Modified Files:
	nand_base.c 
Log Message:
remove locking in nand_wait, as we do not support erase supsend anymore

Index: nand_base.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/nand/nand_base.c,v
retrieving revision 1.116
retrieving revision 1.117
diff -u -r1.116 -r1.117
--- nand_base.c	30 Aug 2004 18:00:45 -0000	1.116
+++ nand_base.c	23 Sep 2004 22:44:21 -0000	1.117
@@ -747,7 +747,6 @@
 	 * any case on any machine. */
 	ndelay (100);
 
-	spin_lock_bh (&this->chip_lock);
 	if ((state == FL_ERASING) && (this->options & NAND_IS_AND))
 		this->cmdfunc (mtd, NAND_CMD_STATUS_MULTI, -1, -1);
 	else	
@@ -755,10 +754,9 @@
 
 	while (time_before(jiffies, timeo)) {		
 		/* Check, if we were interrupted */
-		if (this->state != state) {
-			spin_unlock_bh (&this->chip_lock);
+		if (this->state != state)
 			return 0;
-		}
+
 		if (this->dev_ready) {
 			if (this->dev_ready(mtd))
 				break;	
@@ -766,13 +764,9 @@
 			if (this->read_byte(mtd) & NAND_STATUS_READY)
 				break;
 		}
-		spin_unlock_bh (&this->chip_lock);
 		yield ();
-		spin_lock_bh (&this->chip_lock);
 	}
 	status = (int) this->read_byte(mtd);
-	spin_unlock_bh (&this->chip_lock);
-
 	return status;
 }
 





More information about the linux-mtd-cvs mailing list