Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 252488
b: refs/heads/master
c: 26d9be1
h: refs/heads/master
v: v3
  • Loading branch information
Artem Bityutskiy authored and David Woodhouse committed May 25, 2011
1 parent cc53f95 commit 9c50ad0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 410fe2f02630fa76b5311c06b7411731202d3b68
refs/heads/master: 26d9be11485ea8c1102c3e8eaa7667412eef4950
2 changes: 2 additions & 0 deletions trunk/drivers/mtd/nand/nand_base.c
Original file line number Diff line number Diff line change
Expand Up @@ -3106,6 +3106,8 @@ static struct nand_flash_dev *nand_get_flash_type(struct mtd_info *mtd,
chip->chip_shift += 32 - 1;
}

chip->badblockbits = 8;

/* Set the bad block position */
if (mtd->writesize > 512 || (busw & NAND_BUSWIDTH_16))
chip->badblockpos = NAND_LARGE_BADBLOCK_POS;
Expand Down

0 comments on commit 9c50ad0

Please sign in to comment.