source: trunk/target/linux/orion/patches/050-wrt350nv2_cfi_workaround.patch @ 16950

Last change on this file since 16950 was 16950, checked in by kaloz, 7 years ago

upgrade orion to 2.6.30.2

File size: 638 bytes
  • drivers/mtd/chips/cfi_cmdset_0002.c

    a b struct mtd_info *cfi_cmdset_0002(struct  
    385385 
    386386                cfi_fixup_major_minor(cfi, extp); 
    387387 
    388                 if (extp->MajorVersion != '1' || 
    389                     (extp->MinorVersion < '0' || extp->MinorVersion > '4')) { 
     388                if ((extp->MajorVersion != '0' && extp->MinorVersion != '0') && 
     389                    (extp->MajorVersion != '1' || 
     390                    (extp->MinorVersion < '0' || extp->MinorVersion > '4'))) { 
    390391                        if (cfi->mfr == MANUFACTURER_SAMSUNG && 
    391392                            (extp->MajorVersion == '3' && extp->MinorVersion == '3')) { 
    392393                            printk(KERN_NOTICE "  Newer Samsung flash detected, " 
Note: See TracBrowser for help on using the repository browser.