diff options
author | Maxim Levitsky <maximlevitsky@gmail.com> | 2010-02-22 20:39:37 +0200 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2010-02-26 18:00:08 +0000 |
commit | b64d39d8b03fea88417d53715ccbebf71d4dcc9f (patch) | |
tree | 1644c3aa53bc250171d19cc9c85b2ae8ca7e0a54 /include/linux/mtd | |
parent | 782ce79a45b3b850b108896fcf7da26754061c8f (diff) | |
download | kernel_samsung_espresso10-b64d39d8b03fea88417d53715ccbebf71d4dcc9f.zip kernel_samsung_espresso10-b64d39d8b03fea88417d53715ccbebf71d4dcc9f.tar.gz kernel_samsung_espresso10-b64d39d8b03fea88417d53715ccbebf71d4dcc9f.tar.bz2 |
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')
-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 11d8e68..5326435 100644 --- a/include/linux/mtd/mtd.h +++ b/include/linux/mtd/mtd.h @@ -60,9 +60,7 @@ struct mtd_erase_region_info { * MTD_OOB_PLACE: oob data are placed at the given offset * MTD_OOB_AUTO: oob data are automatically placed at the free areas * which are defined by the ecclayout - * MTD_OOB_RAW: mode to read raw data+oob in one chunk. The oob data - * is inserted into the data. Thats a raw image of the - * flash contents. + * MTD_OOB_RAW: mode to read oob and data without doing ECC checking */ typedef enum { MTD_OOB_PLACE, |