orion: fix lan and wan mac address for wrt530n v2 (patch by maddes from #7113)
[openwrt.git] / target / linux / orion / patches / 050-wrt350nv2_cfi_workaround.patch
1 --- a/drivers/mtd/chips/cfi_cmdset_0002.c
2 +++ b/drivers/mtd/chips/cfi_cmdset_0002.c
3 @@ -374,8 +374,9 @@ struct mtd_info *cfi_cmdset_0002(struct
4
5 cfi_fixup_major_minor(cfi, extp);
6
7 - if (extp->MajorVersion < '0' || extp->MajorVersion > '3' ||
8 - (extp->MinorVersion < '0' || extp->MinorVersion > '4')) {
9 + if ((extp->MajorVersion != '0' && extp->MinorVersion != '0') &&
10 + (extp->MajorVersion < '0' || extp->MajorVersion > '3' ||
11 + (extp->MinorVersion < '0' || extp->MinorVersion > '4'))) {
12 if (cfi->mfr == MANUFACTURER_SAMSUNG &&
13 (extp->MajorVersion == '3' && extp->MinorVersion == '3')) {
14 printk(KERN_NOTICE " Newer Samsung flash detected, "
This page took 0.046777 seconds and 5 git commands to generate.