summaryrefslogtreecommitdiffstats
path: root/drivers/crypto
diff options
context:
space:
mode:
authorHoria Geantă <horia.geanta@nxp.com>2020-07-22 14:14:57 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2020-07-31 10:25:28 +0200
commitee0a6de9aa3755617e12dc5629617d27250b5846 (patch)
tree285804f68b14edec0e3d3ca4a3301cd9a04eddfc /drivers/crypto
parentcrypto: caam/jr - remove incorrect reference to caam_jr_register() (diff)
downloadlinux-ee0a6de9aa3755617e12dc5629617d27250b5846.tar.xz
linux-ee0a6de9aa3755617e12dc5629617d27250b5846.zip
crypto: caam - add more RNG hw error codes
In some cases, e.g. when TRNG is not properly configured, the RNG module could issue a "Hardware error" at runtime. "Continuos check" error is emitted when some of the BISTs fail. Signed-off-by: Horia Geantă <horia.geanta@nxp.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto')
-rw-r--r--drivers/crypto/caam/error.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/crypto/caam/error.c b/drivers/crypto/caam/error.c
index 17c6108b6d41..72db90176b1a 100644
--- a/drivers/crypto/caam/error.c
+++ b/drivers/crypto/caam/error.c
@@ -212,6 +212,9 @@ static const char * const rng_err_id_list[] = {
"Prediction resistance and test request",
"Uninstantiate",
"Secure key generation",
+ "",
+ "Hardware error",
+ "Continuous check"
};
static int report_ccb_status(struct device *jrdev, const u32 status,