Files
u-boot/drivers
Miquel Raynal a0a984e14a spl: nand: sunxi: fix second case of modulo by zero error
In the nand_read_buffer() step, the seed is calculated by doing a modulo
by conf->nseeds which is always zero when not using the randomizer (most
of SLC NANDs).

This situation turns out to lead to a run time freeze with certain
toolchains.

Derive this seed only when the randomizer is enabled (and conf->nseeds
logically not zero), exactly like what has been done before with an
identical situation, see commit ea3f750c73 ("nand: sunxi: Fix modulo
by zero error").

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Acked-by: Boris Brezillon <boris.brezillon@bootlin.com>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
2018-04-03 12:10:55 +02:00
..
2018-02-13 23:24:22 -05:00
2018-01-26 12:38:13 +01:00
2018-02-18 15:53:48 -07:00
2018-02-21 20:28:15 +01:00
2018-03-09 09:23:10 -05:00
2018-03-09 09:23:10 -05:00
2018-03-14 13:27:14 -04:00
2018-03-13 22:36:33 +05:30
2018-03-05 20:24:17 -05:00
2018-03-13 18:12:35 +01:00
2018-01-26 12:38:13 +01:00
2018-02-04 12:00:58 +01:00
2016-02-06 12:00:59 +01:00
2018-03-15 08:27:27 -04:00
2018-03-09 09:23:10 -05:00
2018-03-05 20:24:17 -05:00