summaryrefslogtreecommitdiff
path: root/drivers/s390/char/monreader.c
diff options
context:
space:
mode:
authorMiquel Raynal <miquel.raynal@free-electrons.com>2018-01-25 01:49:31 +0300
committerBoris Brezillon <boris.brezillon@free-electrons.com>2018-01-25 11:14:32 +0300
commitf4c6cd1a7f2275d5bc0e494b21fff26f8dde80f0 (patch)
tree7b35e5993d48a874ce40d6e1b05c6339a1c00b05 /drivers/s390/char/monreader.c
parent4c7e95b1b3286a2ba704790018a35510344958f2 (diff)
downloadlinux-f4c6cd1a7f2275d5bc0e494b21fff26f8dde80f0.tar.xz
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: <stable@vger.kernel.org> Suggested-by: Boris Brezillon <boris.brezillon@free-electrons.com> Signed-off-by: Miquel Raynal <miquel.raynal@free-electrons.com> Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Diffstat (limited to 'drivers/s390/char/monreader.c')
0 files changed, 0 insertions, 0 deletions