Commit 38a1965f authored by Lionel Debieve's avatar Lionel Debieve Committed by Herbert Xu

hwrng: stm32 - set default random quality

Add a default quality to hw_random device to be
automatically set as new default entropy. Setting
random quality will decrease the crng init time by
switching to this hardware random source.
Signed-off-by: default avatarLionel Debieve <lionel.debieve@st.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent af0d4442
...@@ -161,6 +161,7 @@ static int stm32_rng_probe(struct platform_device *ofdev) ...@@ -161,6 +161,7 @@ static int stm32_rng_probe(struct platform_device *ofdev)
#endif #endif
priv->rng.read = stm32_rng_read, priv->rng.read = stm32_rng_read,
priv->rng.priv = (unsigned long) dev; priv->rng.priv = (unsigned long) dev;
priv->rng.quality = 900;
pm_runtime_set_autosuspend_delay(dev, 100); pm_runtime_set_autosuspend_delay(dev, 100);
pm_runtime_use_autosuspend(dev); pm_runtime_use_autosuspend(dev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment