]> git.baikalelectronics.ru Git - kernel.git/commit
hwrng: omap - Fix RNG wait loop timeout
authorSumit Garg <sumit.garg@linaro.org>
Mon, 14 Oct 2019 12:02:45 +0000 (17:32 +0530)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 25 Oct 2019 15:06:04 +0000 (02:06 +1100)
commitdbe736adf7778c1b7ea7f783bb1da81553b1d5a0
tree7996ae9b1392f68756392d68d5fc45f67a1832f9
parentc09cd3a134b81883fda6a4577d23f84c86f84cec
hwrng: omap - Fix RNG wait loop timeout

Existing RNG data read timeout is 200us but it doesn't cover EIP76 RNG
data rate which takes approx. 700us to produce 16 bytes of output data
as per testing results. So configure the timeout as 1000us to also take
account of lack of udelay()'s reliability.

Fixes: 3581fb95dc92 ("hwrng: omap - Add device variant for SafeXcel IP-76 found in Armada 8K")
Cc: <stable@vger.kernel.org>
Signed-off-by: Sumit Garg <sumit.garg@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/char/hw_random/omap-rng.c