summary refs log tree commit diff
path: root/drivers/char
diff options
context:
space:
mode:
authorTony Lindgren <tony@atomide.com>2019-09-14 14:02:57 -0700
committerHerbert Xu <herbert@gondor.apana.org.au>2019-10-05 01:06:11 +1000
commita0f19a894c46e5ceb7334d4d66453e566152ed1e (patch)
treef8b93301abab6a124976030a2c33f1a6d9e2c818 /drivers/char
parenteaecce12f5f0d2c35d278e41e1bc4522393861ab (diff)
downloadlinux-a0f19a894c46e5ceb7334d4d66453e566152ed1e.tar.gz
hwrng: omap3-rom - Initialize default quality to get data
Similar to commit 62f95ae805fa ("hwrng: omap - Set default quality")
we need to initialize the default quality for the RNG to be used.

The symptoms of this problem is that doing hd /dev/random does not
produce much data at all.

Cc: Aaro Koskinen <aaro.koskinen@iki.fi>
Cc: Adam Ford <aford173@gmail.com>
Cc: Pali Rohár <pali.rohar@gmail.com>
Cc: Sebastian Reichel <sre@kernel.org>
Cc: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/char')
-rw-r--r--drivers/char/hw_random/omap3-rom-rng.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/char/hw_random/omap3-rom-rng.c b/drivers/char/hw_random/omap3-rom-rng.c
index 8df3cad7c97a..f5247e9ae6df 100644
--- a/drivers/char/hw_random/omap3-rom-rng.c
+++ b/drivers/char/hw_random/omap3-rom-rng.c
@@ -88,6 +88,7 @@ static int omap3_rom_rng_read(struct hwrng *rng, void *data, size_t max, bool w)
 
 static struct hwrng omap3_rom_rng_ops = {
 	.name		= "omap3-rom",
+	.quality	= 900,
 };
 
 static int omap3_rom_rng_probe(struct platform_device *pdev)