summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2019-08-05 15:55:48 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2019-08-06 09:18:40 +0200
commit655e085e3a22d52eb040e7c3bbd2fa1cb6c249c1 (patch)
tree0e8d7ea1e317894e8432c6a665650c36dd39fc4b /include
parentd31741518a19bcc91084fd29a5dd3d07a2156089 (diff)
downloadbarebox-655e085e3a22d52eb040e7c3bbd2fa1cb6c249c1.tar.gz
barebox-655e085e3a22d52eb040e7c3bbd2fa1cb6c249c1.tar.xz
crypto: caam - Always do rng selftest
The caam rng selftest is known to be broken in several i.MX incarnations. To be on the safe side just unconditionally execute it rather than trying to guess from HAB failure events if this is necessary. We can only do the selftest once per boot though, doing it a second time yields an error: rng_self_test: Job Error: 2101000.jr0@1000.of: 20001953: CCB: desc idx 25: RNG: Instantiate so only do the test when rng is not yet initialized as tested with the RDSTA_IFx status bits. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/hab.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/include/hab.h b/include/hab.h
index a74b7dafce..78c2b865ba 100644
--- a/include/hab.h
+++ b/include/hab.h
@@ -23,7 +23,6 @@
#ifdef CONFIG_HABV4
int imx28_hab_get_status(void);
int imx6_hab_get_status(void);
-bool caam_need_rng_software_selftest(void);
#else
static inline int imx28_hab_get_status(void)
{
@@ -33,10 +32,6 @@ static inline int imx6_hab_get_status(void)
{
return -EPERM;
}
-static inline bool caam_need_rng_software_selftest(void)
-{
- return false;
-}
#endif
#ifdef CONFIG_HABV3