Skip to contentSkip to conversation

crypto: fsl: init caam_jr driver

PATCH In review Heiko Schocher 2 participants 2 messages Mar 24 – Mar 26 Crypto API

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 crypto: fsl: init caam_jr driver

select ARCH_MISC_INIT Kconfig symbol when enabling freescales crypto driver support, as the init of the caam_jr driver is done in arch_misc_init and not enabling ARCH_MISC_INIT leads in crashes, hangs for example in hash calculations, as caam-jr driver is not initialized.

---
Azure build:
https://dev.azure.com/hs0298/hs/_build/results?buildId=206&view=results

 drivers/crypto/fsl/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/crypto/fsl/Kconfig +1 -0
index fe694f6022c..eb01c6cf700 100644
@@ -3,6 +3,7 @@ if ARM || PPC
 config FSL_CAAM
 	bool "Freescale Crypto Driver Support"
 	select SHA_HW_ACCEL
+	select ARCH_MISC_INIT
 	# hw_sha1() under drivers/crypto, and needed with SHA_HW_ACCEL
 	select MISC if DM
 	imply SPL_CRYPTO if (ARM && SPL)
Signature · 3 lines
2.20.1

base-commit: eb95914b9f5886b7ca0eaa2dbcd8a66bb8e5f81a
Reviewed-by on v1 1/1
#1 lore raw
Quoted 9 lines · Heiko Schocher

select ARCH_MISC_INIT Kconfig symbol when enabling freescales crypto driver support, as the init of the caam_jr driver is done in arch_misc_init and not enabling ARCH_MISC_INIT leads in crashes, hangs for example in hash calculations, as caam-jr driver is not initialized.