[lkml]   [2010]   [Feb]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH 10/15] MTD: nand: make reads using MTD_OOB_RAW affect only ECC validation
    On Mon, 2010-02-22 at 22:20 +0100, Thomas Gleixner wrote: 
    > On Mon, 22 Feb 2010, Maxim Levitsky 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 just like MTD_OOB_PLACE, but doesn't do ECC validation
    > Is this tested against existing user space tools like nanddump ? Can I
    > still get the raw data from flash ?

    Thats the point.
    Userspace doesn't/can't use that mode.
    It is not exposed through mtdchar.
    Userspace reads the page, and then reads the oob.

    It does use MTD_OOB_RAW, but without data buffer, and this path I don't

    The only user of this, is the nand itself, when it reads bad block

    I confess that I didn't run test that I ported this code correctly.
    But I did logically verified many times that the new code works just
    like old one.

    Best regards,
    Maxim Levitsky

     \ /
      Last update: 2010-02-22 22:31    [W:0.023 / U:4.552 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site