From: Philipp Puschmann <philipp.puschmann@emlix.com>
To: horia.geanta@nxp.com
Cc: aymen.sghaier@nxp.com, herbert@gondor.apana.org.au,
davem@davemloft.net, linux-crypto@vger.kernel.org,
linux-kernel@vger.kernel.org, o.rempel@pengutronix.de,
Philipp Puschmann <philipp.puschmann@emlix.com>
Subject: [PATCH] crypto: caam: set hwrng quality level
Date: Wed, 13 Feb 2019 15:49:07 +0100 [thread overview]
Message-ID: <20190213144907.5696-1-philipp.puschmann@emlix.com> (raw)
When quality is set to 0 this driver is not used as randomness source by
HWRNG framework at all. So set the quality and finally make this driver
work. The value of the quality was discussed before
( see https://patchwork.kernel.org/patch/9850669/ ) and it is still a rough
value.
Signed-off-by: Philipp Puschmann <philipp.puschmann@emlix.com>
---
drivers/crypto/caam/caamrng.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/crypto/caam/caamrng.c b/drivers/crypto/caam/caamrng.c
index a387c8d49a62..b6fd60f7638e 100644
--- a/drivers/crypto/caam/caamrng.c
+++ b/drivers/crypto/caam/caamrng.c
@@ -294,6 +294,7 @@ static struct hwrng caam_rng = {
.name = "rng-caam",
.cleanup = caam_cleanup,
.read = caam_read,
+ .quality = 990,
};
static void __exit caam_rng_exit(void)
--
2.20.1
next reply other threads:[~2019-02-13 14:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-13 14:49 Philipp Puschmann [this message]
2019-02-19 6:57 ` Horia Geanta
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190213144907.5696-1-philipp.puschmann@emlix.com \
--to=philipp.puschmann@emlix.com \
--cc=aymen.sghaier@nxp.com \
--cc=davem@davemloft.net \
--cc=herbert@gondor.apana.org.au \
--cc=horia.geanta@nxp.com \
--cc=linux-crypto@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=o.rempel@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®