Skip to content

Commit

Permalink
crypto: caam - add more RNG hw error codes
Browse files Browse the repository at this point in the history
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ă <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
  • Loading branch information
horiag authored and herbertx committed Jul 31, 2020
1 parent 26c4a51 commit ee0a6de
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/crypto/caam/error.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit ee0a6de

Please sign in to comment.