[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210220174741.23665-1-noltari@gmail.com>
Date: Sat, 20 Feb 2021 18:47:40 +0100
From: Álvaro Fernández Rojas
<noltari@...il.com>
To: mpm@...enic.com, herbert@...dor.apana.org.au,
nsaenzjulienne@...e.de, f.fainelli@...il.com, rjui@...adcom.com,
sbranden@...adcom.com, bcm-kernel-feedback-list@...adcom.com,
rikard.falkeborn@...il.com, noltari@...il.com,
linux-crypto@...r.kernel.org, linux-rpi-kernel@...ts.infradead.org,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
stijn@...ux-ipv6.be, ynezz@...e.cz
Subject: [PATCH] hwrng: bcm2835: set quality to 1000
This allows devices without a high precission timer to reduce boot from >100s
to <30s.
Signed-off-by: Álvaro Fernández Rojas <noltari@...il.com>
---
drivers/char/hw_random/bcm2835-rng.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/char/hw_random/bcm2835-rng.c b/drivers/char/hw_random/bcm2835-rng.c
index 1a7c43b43c6b..4b48cb7176b0 100644
--- a/drivers/char/hw_random/bcm2835-rng.c
+++ b/drivers/char/hw_random/bcm2835-rng.c
@@ -163,6 +163,7 @@ static int bcm2835_rng_probe(struct platform_device *pdev)
priv->rng.init = bcm2835_rng_init;
priv->rng.read = bcm2835_rng_read;
priv->rng.cleanup = bcm2835_rng_cleanup;
+ priv->rng.quality = 1000;
if (dev_of_node(dev)) {
rng_id = of_match_node(bcm2835_rng_of_match, dev->of_node);
--
2.20.1
Powered by blists - more mailing lists