diff options
author | Lionel Debieve <lionel.debieve@st.com> | 2019-04-01 12:30:46 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2019-04-15 11:35:10 +0200 |
commit | 38a1965f42cc750652ed5ec70bb0cb3f7a4e20b9 (patch) | |
tree | 176272b57eec3cca8487391d4fe7f3a76a473fec /drivers/char/hw_random/stm32-rng.c | |
parent | hwrng: stm32 - fix unbalanced pm_runtime_enable (diff) | |
download | linux-38a1965f42cc750652ed5ec70bb0cb3f7a4e20b9.tar.xz linux-38a1965f42cc750652ed5ec70bb0cb3f7a4e20b9.zip |
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>
Diffstat (limited to '')
-rw-r--r-- | drivers/char/hw_random/stm32-rng.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/char/hw_random/stm32-rng.c b/drivers/char/hw_random/stm32-rng.c index 37b338a76ba4..0ef5b6a3f560 100644 --- a/drivers/char/hw_random/stm32-rng.c +++ b/drivers/char/hw_random/stm32-rng.c @@ -161,6 +161,7 @@ static int stm32_rng_probe(struct platform_device *ofdev) #endif priv->rng.read = stm32_rng_read, priv->rng.priv = (unsigned long) dev; + priv->rng.quality = 900; pm_runtime_set_autosuspend_delay(dev, 100); pm_runtime_use_autosuspend(dev); |