[PATCH v2] mtd: eLBC NAND: update ecc_stats.corrected when lteccr available
Scott Wood
scottwood at freescale.com
Tue Jul 26 15:05:54 EDT 2011
On Tue, 26 Jul 2011 13:59:25 -0500
Michael Hench <michaelhench at gmail.com> wrote:
> update ecc_stats.corrected if LTECCR register is available.
>
> v2: kernel standard C formatting
Missed a couple:
> + if(lteccr & 0x000F000F)
> + out_be32(&lbc->lteccr, 0x000F000F); /* clear lteccr */
> + if(lteccr & 0x000F0000)
> + mtd->ecc_stats.corrected++;
-Scott
More information about the linux-mtd
mailing list