lkml.org 
[lkml]   [2011]   [Nov]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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



\
 
 \ /
  Last update: 2011-11-12 19:43    [from the cache]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and my Meterkast|Read the blog