Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
0040bf38
Commit
0040bf38
authored
Feb 09, 2005
by
Thomas Gleixner
Committed by
Thomas Gleixner
May 23, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[MTD] NAND: Skip bad block table scan on request
Signed-off-by:
Thomas Gleixner
<
tglx@linutronix.de
>
parent
2f82ce1e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
drivers/mtd/nand/nand_base.c
drivers/mtd/nand/nand_base.c
+5
-1
include/linux/mtd/nand.h
include/linux/mtd/nand.h
+3
-2
No files found.
drivers/mtd/nand/nand_base.c
View file @
0040bf38
...
...
@@ -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.13
0 2005/01/24 03:07:43 dmarlin
Exp $
* $Id: nand_base.c,v 1.13
1 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
...
...
@@ -2632,6 +2632,10 @@ int nand_scan (struct mtd_info *mtd, int maxchips)
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
);
}
...
...
include/linux/mtd/nand.h
View file @
0040bf38
...
...
@@ -5,7 +5,7 @@
* Steven J. Hill <sjhill@realitydiluted.com>
* Thomas Gleixner <tglx@linutronix.de>
*
* $Id: nand.h,v 1.7
0 2005/01/24 03:07:42 dmarlin
Exp $
* $Id: nand.h,v 1.7
1 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
...
...
@@ -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 */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment