hwrng: imx-rngc - reasonable timeout for initial seed
authorMartin Kaiser <martin@kaiser.cx>
Tue, 12 Sep 2023 14:31:18 +0000 (16:31 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 20 Sep 2023 05:15:29 +0000 (13:15 +0800)
commit50fb6d5c58e4a2cefbd88f52f7197f589ae1bb7c
treeb668894536d64cae59d89cd2a7e906aeb23130cd
parentb6c6044b4ba561e3ca2d8a2a815f3091ee7ff33c
hwrng: imx-rngc - reasonable timeout for initial seed

Set a more reasonable timeout for calculating the initial seed.

The reference manuals says that "The initial seed takes approximately
2,000,000 clock cycles." The rngc peripheral clock runs at >= 33.25MHz,
so seeding takes at most 60ms.

A timeout of 200ms is more appropriate than the current value of 3
seconds.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/char/hw_random/imx-rngc.c