]> Git Repo - J-u-boot.git/commit
mtd: nand: sunxi: fix ECC strength choice
authorMiquel Raynal <[email protected]>
Wed, 28 Feb 2018 19:51:44 +0000 (20:51 +0100)
committerMaxime Ripard <[email protected]>
Tue, 3 Apr 2018 10:10:46 +0000 (12:10 +0200)
commitf3aff376892a5af55a090d29e53e10391f886d80
tree2f884ea5a6f26c7be09f71d589b944deaa021973
parent55fe0e2b54173ebdc2aa87c329750c2a70e84fb2
mtd: nand: sunxi: fix ECC strength choice

When the requested ECC strength does not exactly match the strengths
supported by the ECC engine, the driver is selecting the closest
strength meeting the 'selected_strength > requested_strength'
constraint. Fix the fact that, in this particular case, ecc->strength
value was not updated to match the 'selected_strength'.

For instance, one can encounter this issue when no ECC requirement is
filled in the device tree while the NAND chip minimum requirement is not
a strength/step_size combo natively supported by the ECC engine.

Suggested-by: Boris Brezillon <[email protected]>
Signed-off-by: Miquel Raynal <[email protected]>
Acked-by: Boris Brezillon <[email protected]>
Signed-off-by: Maxime Ripard <[email protected]>
drivers/mtd/nand/sunxi_nand.c
This page took 0.027672 seconds and 4 git commands to generate.