]> git.baikalelectronics.ru Git - kernel.git/commit
hwrng: stm32 - rework read timeout calculation
authorlionel.debieve@st.com <lionel.debieve@st.com>
Thu, 15 Feb 2018 13:03:12 +0000 (14:03 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 2 Mar 2018 16:03:11 +0000 (00:03 +0800)
commitdf601912ba47075f3349764c263d280a96204494
treeeda4148ed31d72bc4fbc590294916230fed8e4ce
parent5d049580d788055cedbbe4162599d86f3c774849
hwrng: stm32 - rework read timeout calculation

Increase timeout delay to support longer timing linked
to rng initialization. Measurement is based on timer instead
of instructions per iteration which is not powerful on all
targets.

Signed-off-by: Lionel Debieve <lionel.debieve@st.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/char/hw_random/stm32-rng.c