Strange addr_unlock denitions

Masami Komiya mkomiya at crossnet.co.jp
Wed Apr 25 04:21:43 EDT 2001


I think cfi_probe_chip() in cfi_probe.c should be changed
as attached patch. What do you say about this ?

Masami Komiya

diff -c cfi_probe.c.org cfi_probe.c    
*** cfi_probe.c.org     Wed Apr 18 17:26:35 2001
--- cfi_probe.c Mon Apr 23 19:47:25 2001
***************
*** 198,209 ****
  
        switch (cfi->device_type) {
        case CFI_DEVICETYPE_X8:
-               cfi->addr_unlock1=0x555; 
-               cfi->addr_unlock2=0x2aa; 
-               break;
-       case CFI_DEVICETYPE_X16:
                cfi->addr_unlock1=0xaaa; 
                cfi->addr_unlock2=0x555; 
                break;
        case CFI_DEVICETYPE_X32:
                cfi->addr_unlock1=0x1555; 
--- 198,209 ----
  
        switch (cfi->device_type) {
        case CFI_DEVICETYPE_X8:
                cfi->addr_unlock1=0xaaa; 
                cfi->addr_unlock2=0x555; 
+               break;
+       case CFI_DEVICETYPE_X16:
+               cfi->addr_unlock1=0x555; 
+               cfi->addr_unlock2=0x2aa; 
                break;
        case CFI_DEVICETYPE_X32:
                cfi->addr_unlock1=0x1555;


To unsubscribe, send "unsubscribe mtd" to majordomo at infradead.org



More information about the linux-mtd mailing list