[PATCH v2 07/16] mtd/docg3: add OOB layout to mtdinfo
Mike Dunn
mikedunn at newsguy.com
Sat Nov 12 14:39:53 EST 2011
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
More information about the linux-mtd
mailing list