Changeset 13312


Ignore:
Timestamp:
11/25/09 18:58:48 (3 years ago)
Author:
eko
Message:

Samsung flash patch

Location:
src/linux/brcm/linux-2.6.23/drivers/mtd
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/linux/brcm/linux-2.6.23/drivers/mtd/chips/cfi_cmdset_0002.c

    r12690 r13312  
    5252#define SST49LF008A             0x005a 
    5353#define AT49BV6416              0x00d6 
     54#define MANUFACTURER_SAMSUNG    0x00ec 
    5455 
    5556static int cfi_amdstd_read (struct mtd_info *, loff_t, size_t, size_t *, u_char *); 
     
    293294                } 
    294295 
    295                 if (extp->MajorVersion != '1' || 
     296                if (extp->MajorVersion != '1' || 
    296297                    (extp->MinorVersion < '0' || extp->MinorVersion > '4')) { 
    297                         printk(KERN_ERR "  Unknown Amd/Fujitsu Extended Query " 
    298                                "version %c.%c.\n",  extp->MajorVersion, 
    299                                extp->MinorVersion); 
    300                         kfree(extp); 
    301                         kfree(mtd); 
    302                         return NULL; 
     298                        if (cfi->mfr == MANUFACTURER_SAMSUNG && 
     299                            (extp->MajorVersion == '3' && extp->MinorVersion == '3')) { 
     300                            printk(KERN_NOTICE "  Newer Samsung flash detected, " 
     301                                   "should be compatibile with Amd/Fujitsu.\n"); 
     302                        } 
     303                        else { 
     304                            printk(KERN_ERR "  Unknown Amd/Fujitsu Extended Query " 
     305                                   "version %c.%c.\n",  extp->MajorVersion, 
     306                                   extp->MinorVersion); 
     307                            kfree(extp); 
     308                            kfree(mtd); 
     309                            return NULL; 
     310                        }  
    303311                } 
    304312 
  • src/linux/brcm/linux-2.6.23/drivers/mtd/maps/bcm947xx-flash.c

    r12958 r13312  
    531531 
    532532        /* override copy_from routine */ 
    533         bcm947xx_map.copy_from = bcm47xx_map_copy_from; 
     533//      bcm947xx_map.copy_from = bcm47xx_map_copy_from; 
    534534 
    535535        /* Allow size override for testing */ 
Note: See TracChangeset for help on using the changeset viewer.