Skip to content

Commit a0f19a8

Browse files
tmlindherbertx
authored andcommitted
hwrng: omap3-rom - Initialize default quality to get data
Similar to commit 62f95ae ("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 <[email protected]> Cc: Adam Ford <[email protected]> Cc: Pali Rohár <[email protected]> Cc: Sebastian Reichel <[email protected]> Cc: Tero Kristo <[email protected]> Signed-off-by: Tony Lindgren <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent eaecce1 commit a0f19a8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/char/hw_random/omap3-rom-rng.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ static int omap3_rom_rng_read(struct hwrng *rng, void *data, size_t max, bool w)
8888

8989
static struct hwrng omap3_rom_rng_ops = {
9090
.name = "omap3-rom",
91+
.quality = 900,
9192
};
9293

9394
static int omap3_rom_rng_probe(struct platform_device *pdev)

0 commit comments

Comments
 (0)