Skip to content

Commit 38a1965

Browse files
ldebieveherbertx
authored andcommitted
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: Lionel Debieve <lionel.debieve@st.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
1 parent af0d444 commit 38a1965

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎drivers/char/hw_random/stm32-rng.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ static int stm32_rng_probe(struct platform_device *ofdev)
161161
#endif
162162
priv->rng.read = stm32_rng_read,
163163
priv->rng.priv = (unsigned long) dev;
164+
priv->rng.quality = 900;
164165

165166
pm_runtime_set_autosuspend_delay(dev, 100);
166167
pm_runtime_use_autosuspend(dev);

0 commit comments

Comments
 (0)