[PATCH] mtd: atmel_nand: return max bitflips in all sectors in pmecc_correction()

Brian Norris computersforpeace at gmail.com
Tue Jan 20 12:44:42 PST 2015


On Wed, Jan 14, 2015 at 11:50:46AM +0800, Josh Wu wrote:
> atmel_nand_pmecc_read_page() will return the total bitflips in this
> page. This is incorrect.
> 
> As one nand page includes multiple ecc sectors, that will cause the
> returned total bitflips exceed ecc capablity.
> 
> So this patch will make pmecc_correct() return the max bitflips of all
> sectors in the page. That also makes atmel_nand_pmecc_read_page() return
> the max bitflips.
> 
> Signed-off-by: Josh Wu <josh.wu at atmel.com>

Pushed to l2-mtd.git. Thanks.

Brian



More information about the linux-mtd mailing list