mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-30 10:39:04 +00:00
64b53247c4
Refresh patches. Remove upstreamed patch: generic/pending/181-net-usb-add-lte-modem-wistron-neweb-d18q1.patch Update patches that no longer applies: generic/hack/901-debloat_sock_diag.patch Compile-tested on: x86/64. Runtime-tested on: x86/64. Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
26 lines
930 B
Diff
26 lines
930 B
Diff
From cd4a7d700a148f89d599ebe53fd97dc64193683a Mon Sep 17 00:00:00 2001
|
|
From: Sean Wang <sean.wang@mediatek.com>
|
|
Date: Wed, 10 Jan 2018 12:02:46 +0800
|
|
Subject: [PATCH 197/224] hwrng: mediatek - Setup default RNG quality
|
|
|
|
When hw_random device's quality is non-zero, it will automatically fill
|
|
the kernel's entropy pool at boot. For the purpose, one conservative
|
|
quality value is being picked up as the default value.
|
|
|
|
Signed-off-by: Sean Wang <sean.wang@mediatek.com>
|
|
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
|
|
---
|
|
drivers/char/hw_random/mtk-rng.c | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
--- a/drivers/char/hw_random/mtk-rng.c
|
|
+++ b/drivers/char/hw_random/mtk-rng.c
|
|
@@ -135,6 +135,7 @@ static int mtk_rng_probe(struct platform
|
|
#endif
|
|
priv->rng.read = mtk_rng_read;
|
|
priv->rng.priv = (unsigned long)&pdev->dev;
|
|
+ priv->rng.quality = 900;
|
|
|
|
priv->clk = devm_clk_get(&pdev->dev, "rng");
|
|
if (IS_ERR(priv->clk)) {
|