diff options
author | Maxim Levitsky <maximlevitsky@gmail.com> | 2010-02-22 13:39:37 -0500 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2010-02-26 13:00:08 -0500 |
commit | b64d39d8b03fea88417d53715ccbebf71d4dcc9f (patch) | |
tree | 1644c3aa53bc250171d19cc9c85b2ae8ca7e0a54 /include/linux/mtd/mtd.h | |
parent | 782ce79a45b3b850b108896fcf7da26754061c8f (diff) |
mtd: nand: make reads using MTD_OOB_RAW affect only ECC validation
This changes the behavier of MTD_OOB_RAW. It used to read both OOB and
data to the data buffer, however you would still need to specify the
dummy oob buffer.
This is only used in one place, but makes it hard to read data+oob
without ECC test, thus I removed that behavier, and fixed the user.
Now MTD_OOB_RAW behaves just like MTD_OOB_PLACE, but doesn't do ECC
validation
Signed-off-by: Maxim Levitsky <maximlevitsky@gmail.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'include/linux/mtd/mtd.h')
-rw-r--r-- | include/linux/mtd/mtd.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/include/linux/mtd/mtd.h b/include/linux/mtd/mtd.h index 11d8e68d17c0..5326435a7571 100644 --- a/include/linux/mtd/mtd.h +++ b/include/linux/mtd/mtd.h | |||
@@ -60,9 +60,7 @@ struct mtd_erase_region_info { | |||
60 | * MTD_OOB_PLACE: oob data are placed at the given offset | 60 | * MTD_OOB_PLACE: oob data are placed at the given offset |
61 | * MTD_OOB_AUTO: oob data are automatically placed at the free areas | 61 | * MTD_OOB_AUTO: oob data are automatically placed at the free areas |
62 | * which are defined by the ecclayout | 62 | * which are defined by the ecclayout |
63 | * MTD_OOB_RAW: mode to read raw data+oob in one chunk. The oob data | 63 | * MTD_OOB_RAW: mode to read oob and data without doing ECC checking |
64 | * is inserted into the data. Thats a raw image of the | ||
65 | * flash contents. | ||
66 | */ | 64 | */ |
67 | typedef enum { | 65 | typedef enum { |
68 | MTD_OOB_PLACE, | 66 | MTD_OOB_PLACE, |