mtd/drivers/mtd/chips cfi_cmdset_0001.c,1.130,1.131
Thayne Harbaugh
tharbaugh at lnxi.com
Wed Oct 22 14:30:04 EDT 2003
Update of /home/cvs/mtd/drivers/mtd/chips
In directory phoenix.infradead.org:/tmp/cvs-serv27814/drivers/mtd/chips
Modified Files:
cfi_cmdset_0001.c
Log Message:
check for NOP before writing in do_write_oneword()
Index: cfi_cmdset_0001.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/chips/cfi_cmdset_0001.c,v
retrieving revision 1.130
retrieving revision 1.131
diff -u -r1.130 -r1.131
--- cfi_cmdset_0001.c 11 Aug 2003 12:41:05 -0000 1.130
+++ cfi_cmdset_0001.c 22 Oct 2003 18:30:01 -0000 1.131
@@ -756,6 +756,14 @@
return ret;
}
+ /*
+ * Check for a NOP for the case when the datum to write is
+ * already present.
+ */
+ status = cfi_read(map, adr);
+ if (status == datum)
+ goto out;
+
ENABLE_VPP(map);
cfi_write(map, CMD(0x40), adr);
cfi_write(map, datum, adr);
More information about the linux-mtd-cvs
mailing list