Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 231710
b: refs/heads/master
c: 24ac9a9
h: refs/heads/master
v: v3
  • Loading branch information
Ralf Rösch authored and David Woodhouse committed Jan 6, 2011
1 parent 7ad2daa commit b19e480
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: e8953b7395089b917f30d0909f845664d5fafa4e
refs/heads/master: 24ac9a94f9e21ea71d877b0c80867d625b68bec2
5 changes: 3 additions & 2 deletions trunk/drivers/mtd/nand/txx9ndfmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -277,8 +277,9 @@ static int txx9ndfmc_nand_scan(struct mtd_info *mtd)
ret = nand_scan_ident(mtd, 1, NULL);
if (!ret) {
if (mtd->writesize >= 512) {
chip->ecc.size = mtd->writesize;
chip->ecc.bytes = 3 * (mtd->writesize / 256);
/* Hardware ECC 6 byte ECC per 512 Byte data */
chip->ecc.size = 512;
chip->ecc.bytes = 6;
}
ret = nand_scan_tail(mtd);
}
Expand Down

0 comments on commit b19e480

Please sign in to comment.