diff options
-rw-r--r-- | drivers/mtd/nand/nand_base.c | 6 | ||||
-rw-r--r-- | include/linux/mtd/nand.h | 5 |
2 files changed, 8 insertions, 3 deletions
diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c index 7094dd5716dc..99abd615a467 100644 --- a/drivers/mtd/nand/nand_base.c +++ b/drivers/mtd/nand/nand_base.c | |||
@@ -59,7 +59,7 @@ | |||
59 | * The AG-AND chips have nice features for speed improvement, | 59 | * The AG-AND chips have nice features for speed improvement, |
60 | * which are not supported yet. Read / program 4 pages in one go. | 60 | * which are not supported yet. Read / program 4 pages in one go. |
61 | * | 61 | * |
62 | * $Id: nand_base.c,v 1.130 2005/01/24 03:07:43 dmarlin Exp $ | 62 | * $Id: nand_base.c,v 1.131 2005/02/09 12:19:56 gleixner Exp $ |
63 | * | 63 | * |
64 | * This program is free software; you can redistribute it and/or modify | 64 | * This program is free software; you can redistribute it and/or modify |
65 | * it under the terms of the GNU General Public License version 2 as | 65 | * it under the terms of the GNU General Public License version 2 as |
@@ -2631,6 +2631,10 @@ int nand_scan (struct mtd_info *mtd, int maxchips) | |||
2631 | memcpy(&mtd->oobinfo, this->autooob, sizeof(mtd->oobinfo)); | 2631 | memcpy(&mtd->oobinfo, this->autooob, sizeof(mtd->oobinfo)); |
2632 | 2632 | ||
2633 | mtd->owner = THIS_MODULE; | 2633 | mtd->owner = THIS_MODULE; |
2634 | |||
2635 | /* Check, if we should skip the bad block table scan */ | ||
2636 | if (this->options & NAND_SKIP_BBTSCAN) | ||
2637 | return 0; | ||
2634 | 2638 | ||
2635 | /* Build bad block table */ | 2639 | /* Build bad block table */ |
2636 | return this->scan_bbt (mtd); | 2640 | return this->scan_bbt (mtd); |
diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h index cf52f20c6de2..cf25c7cfd0ba 100644 --- a/include/linux/mtd/nand.h +++ b/include/linux/mtd/nand.h | |||
@@ -5,7 +5,7 @@ | |||
5 | * Steven J. Hill <sjhill@realitydiluted.com> | 5 | * Steven J. Hill <sjhill@realitydiluted.com> |
6 | * Thomas Gleixner <tglx@linutronix.de> | 6 | * Thomas Gleixner <tglx@linutronix.de> |
7 | * | 7 | * |
8 | * $Id: nand.h,v 1.70 2005/01/24 03:07:42 dmarlin Exp $ | 8 | * $Id: nand.h,v 1.71 2005/02/09 12:12:59 gleixner Exp $ |
9 | * | 9 | * |
10 | * This program is free software; you can redistribute it and/or modify | 10 | * This program is free software; you can redistribute it and/or modify |
11 | * it under the terms of the GNU General Public License version 2 as | 11 | * it under the terms of the GNU General Public License version 2 as |
@@ -223,7 +223,8 @@ extern int nand_read_raw (struct mtd_info *mtd, uint8_t *buf, loff_t from, size_ | |||
223 | * This can only work if we have the ecc bytes directly behind the | 223 | * This can only work if we have the ecc bytes directly behind the |
224 | * data bytes. Applies for DOC and AG-AND Renesas HW Reed Solomon generators */ | 224 | * data bytes. Applies for DOC and AG-AND Renesas HW Reed Solomon generators */ |
225 | #define NAND_HWECC_SYNDROME 0x00020000 | 225 | #define NAND_HWECC_SYNDROME 0x00020000 |
226 | 226 | /* This option skips the bbt scan during initialization. */ | |
227 | #define NAND_SKIP_BBTSCAN 0x00040000 | ||
227 | 228 | ||
228 | /* Options set by nand scan */ | 229 | /* Options set by nand scan */ |
229 | /* Nand scan has allocated oob_buf */ | 230 | /* Nand scan has allocated oob_buf */ |