diff options
author | Miquel Raynal <miquel.raynal@bootlin.com> | 2021-10-08 18:36:40 +0200 |
---|---|---|
committer | Miquel Raynal <miquel.raynal@bootlin.com> | 2021-10-15 12:24:54 +0200 |
commit | fc9e18f9e987ad46722dad53adab1c12148c213c (patch) | |
tree | c863e205d66bb0f647dbeeb7f547cdc1fb2850fc /lib/zstd/common/debug.c | |
parent | 73e197df1949347bbc1902605b6c7fe8e3b04249 (diff) |
mtd: rawnand: arasan: Prevent an unsupported configuration
Under the following conditions:
* after rounding up by 4 the number of bytes to transfer (this is
related to the controller's internal constraints),
* if this (rounded) amount of data is situated beyond the end of the
device,
* and only in NV-DDR mode,
the Arasan NAND controller timeouts.
This currently can happen in a particular helper used when picking
software ECC algorithms. Let's prevent this situation by refusing to use
the NV-DDR interface with software engines.
Fixes: 4edde6031458 ("mtd: rawnand: arasan: Support NV-DDR interface")
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20211008163640.1753821-1-miquel.raynal@bootlin.com
Diffstat (limited to 'lib/zstd/common/debug.c')
0 files changed, 0 insertions, 0 deletions