diff options
| author | Miquel Raynal <[email protected]> | 2018-01-24 22:49:31 +0000 |
|---|---|---|
| committer | Boris Brezillon <[email protected]> | 2018-01-25 08:14:32 +0000 |
| commit | f4c6cd1a7f2275d5bc0e494b21fff26f8dde80f0 (patch) | |
| tree | 7b35e5993d48a874ce40d6e1b05c6339a1c00b05 /scripts/gcc-plugins/randomize_layout_plugin.c | |
| parent | mtd: nand: gpmi: Fix subpage reads (diff) | |
| download | kernel-f4c6cd1a7f2275d5bc0e494b21fff26f8dde80f0.tar.gz kernel-f4c6cd1a7f2275d5bc0e494b21fff26f8dde80f0.zip | |
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.
Fixes: 1fef62c1423b ("mtd: nand: add sunxi NAND flash controller support")
Cc: <[email protected]>
Suggested-by: Boris Brezillon <[email protected]>
Signed-off-by: Miquel Raynal <[email protected]>
Signed-off-by: Boris Brezillon <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/randomize_layout_plugin.c')
0 files changed, 0 insertions, 0 deletions
