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)
commit279f4f8f2f67b7a2dbb916738667a633b223efde
treeeda4148ed31d72bc4fbc590294916230fed8e4ce
parenta888df9b89b785c6dc6fcbf886f0ccda57f98b3a
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