[PATCH 10/17] MTD: nand: make reads using MTD_OOB_RAW affect only ECC validation

Vitaly Wool vitalywool at gmail.com
Fri Feb 5 03:56:02 EST 2010


On Fri, Feb 5, 2010 at 12:30 AM, Maxim Levitsky <maximlevitsky at gmail.com> wrote:
> 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 like MTD_OOB_PLACE, but doesn't do ECC validation
>
> Signed-off-by: Maxim Levitsky <maximlevitsky at gmail.com>
> ---
>  drivers/mtd/nand/nand_base.c |    5 -----
>  drivers/mtd/nand/nand_bbt.c  |   26 ++++++++++++++++++++++----
>  include/linux/mtd/mtd.h      |    4 +---
>  3 files changed, 23 insertions(+), 12 deletions(-)

Could you please provide a clearer description of why you think this
is necessary?

Thanks,
   Vitaly



More information about the linux-mtd mailing list