aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/crypto/ccree/cc_fips.h
diff options
context:
space:
mode:
authorOfir Drang <ofir.drang@arm.com>2019-04-18 16:39:09 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2019-04-25 15:38:16 +0800
commit897ab2316910a66bb048f1c9cefa25e6a592dcd7 (patch)
tree7a4c23403082d5cc49fd90e372d687a434f7804c /drivers/crypto/ccree/cc_fips.h
parentcrypto: ccree - HOST_POWER_DOWN_EN should be the last CC access during suspend (diff)
downloadlinux-dev-897ab2316910a66bb048f1c9cefa25e6a592dcd7.tar.xz
linux-dev-897ab2316910a66bb048f1c9cefa25e6a592dcd7.zip
crypto: ccree - add function to handle cryptocell tee fips error
Adds function that checks if cryptocell tee fips error occurred and in such case triggers system error through kernel panic. Change fips function to use this new routine. Signed-off-by: Ofir Drang <ofir.drang@arm.com> Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com> Cc: stable@vger.kernel.org # v4.19+ Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to '')
-rw-r--r--drivers/crypto/ccree/cc_fips.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/crypto/ccree/cc_fips.h b/drivers/crypto/ccree/cc_fips.h
index 2c287faf10ff..fc33eeb4d566 100644
--- a/drivers/crypto/ccree/cc_fips.h
+++ b/drivers/crypto/ccree/cc_fips.h
@@ -18,6 +18,7 @@ int cc_fips_init(struct cc_drvdata *p_drvdata);
void cc_fips_fini(struct cc_drvdata *drvdata);
void fips_handler(struct cc_drvdata *drvdata);
void cc_set_ree_fips_status(struct cc_drvdata *drvdata, bool ok);
+void cc_tee_handle_fips_error(struct cc_drvdata *p_drvdata);
#else /* CONFIG_CRYPTO_FIPS */
@@ -30,6 +31,7 @@ static inline void cc_fips_fini(struct cc_drvdata *drvdata) {}
static inline void cc_set_ree_fips_status(struct cc_drvdata *drvdata,
bool ok) {}
static inline void fips_handler(struct cc_drvdata *drvdata) {}
+static inline void cc_tee_handle_fips_error(struct cc_drvdata *p_drvdata) {}
#endif /* CONFIG_CRYPTO_FIPS */