mtd/drivers/mtd/chips cfi_cmdset_0002.c,1.91,1.92

Thayne Harbaugh tharbaugh at lnxi.com
Wed Oct 22 14:28:02 EDT 2003


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

Modified Files:
	cfi_cmdset_0002.c 
Log Message:
Major updates:

* removed *_onesize() functions - they didnt optimize that much
  and only increased code size and maintenance overhead.

* added lock/unlock functions - these likely only work on a very
  narrow set of chips, but it gives a place to start.

* made more similar to cfi_cmdset_0001 - helps cross-maintenance
  and understanding.

* do_write_oneword() checks for a NOP before writing - *huge*
  speedup and avoids some buggy chip behavior.

* revised some comments for better readability and understanding.

* likely some other subtle changes.


Index: cfi_cmdset_0002.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/chips/cfi_cmdset_0002.c,v
retrieving revision 1.91
retrieving revision 1.92
diff -u -r1.91 -r1.92
--- cfi_cmdset_0002.c	21 Oct 2003 15:05:37 -0000	1.91
+++ cfi_cmdset_0002.c	22 Oct 2003 18:27:59 -0000	1.92
@@ -37,58 +37,42 @@
 #define AMD_BOOTLOC_BUG
 #define FORCE_WORD_WRITE 0
 
+
+/*
+ * This is an attempt to coalesce the retry logic in one place - that way
+ * there aren't #ifdefs scattered throughout.
+ */
 #ifdef CONFIG_MTD_CFI_AMDSTD_RETRY
 
 #ifndef CONFIG_MTD_CFI_AMDSTD_RETRY_MAX
[...1869 lines suppressed...]
@@ -2111,16 +2179,19 @@
 
 static char im_name[]="cfi_cmdset_0002";
 
+
 int __init cfi_amdstd_init(void)
 {
 	inter_module_register(im_name, THIS_MODULE, &cfi_cmdset_0002);
 	return 0;
 }
 
+
 static void __exit cfi_amdstd_exit(void)
 {
 	inter_module_unregister(im_name);
 }
+
 
 module_init(cfi_amdstd_init);
 module_exit(cfi_amdstd_exit);




More information about the linux-mtd-cvs mailing list