| Date | Sat, 12 Nov 2011 11:39:53 -0800 | | From | Mike Dunn <> | | Subject | Re: [PATCH v2 07/16] mtd/docg3: add OOB layout to mtdinfo |
| |
On 11/10/2011 12:05 AM, Robert Jarzmik wrote: > +static struct nand_ecclayout docg3_oobinfo = { > + .eccbytes = 8, > + .eccpos = {7, 8, 9, 10, 11, 12, 13, 14}, > + .oobfree = {{0, 7}, {15, 1} }, > + .oobavail = 8, > +}; > +
Just FYI, per Ivan's suggestion, I changed this to use the last oob byte as a "page programmed" flag for the purpose of detecting bit flips when reading a blank page. Maybe something to keep in mind. You can have a look at the latest G4 driver patch to see exactly how I use it.
Mike
|