mtd: nand: sunxi: prefer 1k ECC blocks when applicable
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Mon, 6 Jun 2016 11:59:12 +0000 (13:59 +0200)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Mon, 11 Jul 2016 06:40:12 +0000 (08:40 +0200)
commit872164e41fc8dee154e5f5d22580b34e198eed69
tree86c7fd439d623bab6921d6ec06e3244e9f09f33c
parent252173c69eec6998ecf1be7b11d31cd39ce92c9c
mtd: nand: sunxi: prefer 1k ECC blocks when applicable

Switching to 1k ECC blocks when possible provides better resistance against
concentrated bitflips. Say you have those two configurations:

1/ 16bits/512bytes
2/ 32bits/1024bytes

Both of them require the same amount of ECC bytes (only true for this
specific engine), but the second config allows you to correct the case
where most of your bitflips are concentrated in a single 512bytes portion.

This fact makes the 1k ECC block size more advantageous than the 512bytes
one.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
drivers/mtd/nand/sunxi_nand.c
This page took 0.024742 seconds and 5 git commands to generate.