]> git.karo-electronics.de Git - mv-sheeva.git/commit
mtd: nand: make reads using MTD_OOB_RAW affect only ECC validation
authorMaxim Levitsky <maximlevitsky@gmail.com>
Mon, 22 Feb 2010 18:39:37 +0000 (20:39 +0200)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Fri, 26 Feb 2010 18:00:08 +0000 (18:00 +0000)
commitb64d39d8b03fea88417d53715ccbebf71d4dcc9f
tree1644c3aa53bc250171d19cc9c85b2ae8ca7e0a54
parent782ce79a45b3b850b108896fcf7da26754061c8f
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>
drivers/mtd/nand/nand_base.c
drivers/mtd/nand/nand_bbt.c
include/linux/mtd/mtd.h