diff options
author | Huang Shijie <shijie8@gmail.com> | 2012-08-14 22:38:45 -0400 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2012-09-29 10:00:46 -0400 |
commit | 657f28f8811c92724db10d18bbbec70d540147d6 (patch) | |
tree | 1d8cb32d57eec27f46a74cad73a1ceff43f5e099 /include/linux/mtd/nand.h | |
parent | 8da28681eb1430fb6715c7aef67001acfbbbcba5 (diff) |
mtd: kill MTD_NAND_VERIFY_WRITE
Just as Artem suggested:
"Both UBI and JFFS2 are able to read verify what they wrote already.
There are also MTD tests which do this verification. So I think there
is no reason to keep this in the NAND layer, let alone wasting RAM in
the driver to support this feature. Besides, it does not work for sub-pages
and many drivers have it broken. It hurts more than it provides benefits."
So kill MTD_NAND_VERIFY_WRITE entirely.
Signed-off-by: Huang Shijie <shijie8@gmail.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'include/linux/mtd/nand.h')
-rw-r--r-- | include/linux/mtd/nand.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h index eeb70153b646..1d90e4f82bcf 100644 --- a/include/linux/mtd/nand.h +++ b/include/linux/mtd/nand.h | |||
@@ -394,8 +394,6 @@ struct nand_buffers { | |||
394 | * @read_word: [REPLACEABLE] read one word from the chip | 394 | * @read_word: [REPLACEABLE] read one word from the chip |
395 | * @write_buf: [REPLACEABLE] write data from the buffer to the chip | 395 | * @write_buf: [REPLACEABLE] write data from the buffer to the chip |
396 | * @read_buf: [REPLACEABLE] read data from the chip into the buffer | 396 | * @read_buf: [REPLACEABLE] read data from the chip into the buffer |
397 | * @verify_buf: [REPLACEABLE] verify buffer contents against the chip | ||
398 | * data. | ||
399 | * @select_chip: [REPLACEABLE] select chip nr | 397 | * @select_chip: [REPLACEABLE] select chip nr |
400 | * @block_bad: [REPLACEABLE] check, if the block is bad | 398 | * @block_bad: [REPLACEABLE] check, if the block is bad |
401 | * @block_markbad: [REPLACEABLE] mark the block bad | 399 | * @block_markbad: [REPLACEABLE] mark the block bad |
@@ -478,7 +476,6 @@ struct nand_chip { | |||
478 | u16 (*read_word)(struct mtd_info *mtd); | 476 | u16 (*read_word)(struct mtd_info *mtd); |
479 | void (*write_buf)(struct mtd_info *mtd, const uint8_t *buf, int len); | 477 | void (*write_buf)(struct mtd_info *mtd, const uint8_t *buf, int len); |
480 | void (*read_buf)(struct mtd_info *mtd, uint8_t *buf, int len); | 478 | void (*read_buf)(struct mtd_info *mtd, uint8_t *buf, int len); |
481 | int (*verify_buf)(struct mtd_info *mtd, const uint8_t *buf, int len); | ||
482 | void (*select_chip)(struct mtd_info *mtd, int chip); | 479 | void (*select_chip)(struct mtd_info *mtd, int chip); |
483 | int (*block_bad)(struct mtd_info *mtd, loff_t ofs, int getchip); | 480 | int (*block_bad)(struct mtd_info *mtd, loff_t ofs, int getchip); |
484 | int (*block_markbad)(struct mtd_info *mtd, loff_t ofs); | 481 | int (*block_markbad)(struct mtd_info *mtd, loff_t ofs); |