[U-Boot] [PATCH 2/8] spl: nand: sunxi: Fix second case of modulo by zero error
Maxime Ripard
maxime.ripard at free-electrons.com
Wed Jan 24 07:47:31 UTC 2018
On Wed, Jan 24, 2018 at 01:44:48AM +0100, Miquel Raynal wrote:
> 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.
>
> Derive this seed only when the randomizer is enabled (and conf->nseeds
> logically not zero).
Mentionning the first occurence of that issue in your commit log would
be great, especially since the situation depends on configuration
options.
Maxime
--
Maxime Ripard, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180124/08e917a1/attachment.sig>
More information about the U-Boot
mailing list