Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 4482
b: refs/heads/master
c: 0040bf3
h: refs/heads/master
v: v3
  • Loading branch information
Thomas Gleixner authored and Thomas Gleixner committed May 23, 2005
1 parent b8812af commit fcbeb5e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 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: 2f82ce1eb637c06dfc60f095cd1891ae0ba4894c
refs/heads/master: 0040bf382c77414739c933e4d2ee35ff817d0b99
6 changes: 5 additions & 1 deletion 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.130 2005/01/24 03:07:43 dmarlin Exp $
* $Id: nand_base.c,v 1.131 2005/02/09 12:19:56 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 @@ -2631,6 +2631,10 @@ int nand_scan (struct mtd_info *mtd, int maxchips)
memcpy(&mtd->oobinfo, this->autooob, sizeof(mtd->oobinfo));

mtd->owner = THIS_MODULE;

/* Check, if we should skip the bad block table scan */
if (this->options & NAND_SKIP_BBTSCAN)
return 0;

/* Build bad block table */
return this->scan_bbt (mtd);
Expand Down
5 changes: 3 additions & 2 deletions trunk/include/linux/mtd/nand.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Steven J. Hill <sjhill@realitydiluted.com>
* Thomas Gleixner <tglx@linutronix.de>
*
* $Id: nand.h,v 1.70 2005/01/24 03:07:42 dmarlin Exp $
* $Id: nand.h,v 1.71 2005/02/09 12:12:59 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 @@ -223,7 +223,8 @@ extern int nand_read_raw (struct mtd_info *mtd, uint8_t *buf, loff_t from, size_
* This can only work if we have the ecc bytes directly behind the
* data bytes. Applies for DOC and AG-AND Renesas HW Reed Solomon generators */
#define NAND_HWECC_SYNDROME 0x00020000

/* This option skips the bbt scan during initialization. */
#define NAND_SKIP_BBTSCAN 0x00040000

/* Options set by nand scan */
/* Nand scan has allocated oob_buf */
Expand Down

0 comments on commit fcbeb5e

Please sign in to comment.