Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 4531
b: refs/heads/master
c: 998cf64
h: refs/heads/master
i:
  4529: 482dc63
  4527: e6fb3a3
v: v3
  • Loading branch information
Thomas Gleixner authored and Thomas Gleixner committed May 23, 2005
1 parent 819ba35 commit c8be4b2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 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: 963a6fb0a0d336d0513083b7e4b5c3ff9d6d2061
refs/heads/master: 998cf6403cdaac74211c619772bea027274ffc42
11 changes: 4 additions & 7 deletions trunk/drivers/mtd/nand/nand_base.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
* The AG-AND chips have nice features for speed improvement,
* which are not supported yet. Read / program 4 pages in one go.
*
* $Id: nand_base.c,v 1.137 2005/03/24 14:33:22 dedekind Exp $
* $Id: nand_base.c,v 1.138 2005/04/01 07:21:44 gleixner Exp $
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
Expand Down Expand Up @@ -2512,12 +2512,9 @@ int nand_scan (struct mtd_info *mtd, int maxchips)

/* The number of bytes available for the filesystem to place fs dependend
* oob data */
if (this->options & NAND_BUSWIDTH_16) {
mtd->oobavail = mtd->oobsize - (this->autooob->eccbytes + 2);
if (this->autooob->eccbytes & 0x01)
mtd->oobavail--;
} else
mtd->oobavail = mtd->oobsize - (this->autooob->eccbytes + 1);
mtd->oobavail = 0;
for (i = 0; this->autooob->oobfree[i][1]; i++)
mtd->oobavail += this->autooob->oobfree[i][1];

/*
* check ECC mode, default to software
Expand Down

0 comments on commit c8be4b2

Please sign in to comment.