source: trunk/target/linux/generic/patches-2.6.34/089-mtd-samsung-flash.patch @ 21952

Last change on this file since 21952 was 21952, checked in by nbd, 6 years ago

rename target/linux/generic-2.6 to generic

File size: 1.2 KB
  • drivers/mtd/chips/cfi_cmdset_0002.c

    a b static void cfi_fixup_major_minor(struct 
    327327{ 
    328328        // manufacturers defined in include/linux/mtd/cfi.h 
    329329 
    330         if (cfi->mfr == CFI_MFR_SAMSUNG && cfi->id == 0x257e && 
    331             extp->MajorVersion == '0') 
     330        if (cfi->mfr == CFI_MFR_SAMSUNG && 
     331            extp->MajorVersion == '0') { 
     332                printk("  Fixed Samsung's Amd/Fujitsu Extended Query version from %c.%c", 
     333                       extp->MajorVersion, extp->MinorVersion); 
     334 
    332335                extp->MajorVersion = '1'; 
     336                extp->MinorVersion = '0'; 
     337 
     338                printk(" to %c.%c.\n", 
     339                       extp->MajorVersion, extp->MinorVersion); 
     340        } 
     341 
     342        if (cfi->mfr == CFI_MFR_SAMSUNG && 
     343            extp->MajorVersion == '3' && extp->MinorVersion == '3') { 
     344                printk(KERN_NOTICE "  Newer Samsung flash detected, " 
     345                       "should be compatibile with Amd/Fujitsu.\n"); 
     346 
     347                printk("  Fixed Samsung's Amd/Fujitsu Extended Query version from %c.%c", 
     348                       extp->MajorVersion, extp->MinorVersion); 
     349 
     350                extp->MajorVersion = '1';       // set to 1.3 (last defined version) 
     351                extp->MinorVersion = '3'; 
     352 
     353                printk(" to %c.%c.\n", 
     354                       extp->MajorVersion, extp->MinorVersion); 
     355        } 
    333356} 
    334357 
    335358struct mtd_info *cfi_cmdset_0002(struct map_info *map, int primary) 
Note: See TracBrowser for help on using the repository browser.