Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 195955
b: refs/heads/master
c: 412da2f
h: refs/heads/master
i:
  195953: 28acc88
  195951: b997e22
v: v3
  • Loading branch information
David Woodhouse authored and David Woodhouse committed May 14, 2010
1 parent 6a52648 commit 5fd3232
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 564b84978df2bf83d334940f1a1190702579f79f
refs/heads/master: 412da2f6e083eba6e4bd91ff2e78abb4735357a7
9 changes: 5 additions & 4 deletions trunk/drivers/mtd/chips/cfi_cmdset_0002.c
Original file line number Diff line number Diff line change
Expand Up @@ -390,14 +390,15 @@ struct mtd_info *cfi_cmdset_0002(struct map_info *map, int primary)
#endif

bootloc = extp->TopBottom;
if ((bootloc != 2) && (bootloc != 3)) {
printk(KERN_WARNING "%s: CFI does not contain boot "
"bank location. Assuming top.\n", map->name);
if ((bootloc < 2) || (bootloc > 5)) {
printk(KERN_WARNING "%s: CFI contains unrecognised boot "
"bank location (%d). Assuming bottom.\n",
bootloc, map->name);
bootloc = 2;
}

if (bootloc == 3 && cfi->cfiq->NumEraseRegions > 1) {
printk(KERN_WARNING "%s: Swapping erase regions for broken CFI table.\n", map->name);
printk(KERN_WARNING "%s: Swapping erase regions for top-boot CFI table.\n", map->name);

for (i=0; i<cfi->cfiq->NumEraseRegions / 2; i++) {
int j = (cfi->cfiq->NumEraseRegions-1)-i;
Expand Down

0 comments on commit 5fd3232

Please sign in to comment.