Home
last modified time | relevance | path

Searched hist:"377 f97ba61e55eb6122d7032b1e7d108302580a1" (Results 1 – 1 of 1) sorted by relevance

/optee_os/core/drivers/
H A Ddra7_rng.c377f97ba61e55eb6122d7032b1e7d108302580a1 Thu Nov 14 16:57:24 UTC 2024 Andrew Davis <afd@ti.com> drivers: dra7_rng: Change dra7_rng_init to service_init_crypto

Since commit 11d8578d93f0 ("core: arm: call call_driver_initcalls()
late"), driver_init is deferred and thread_update_canaries tries to get
random_stack_canaries which requires the TRNG driver to be setup. Since
it was being setup as part of driver_init, it lead to crash on DRA7
platforms.

Change driver_init to service_init_crypto which is meant to be used for
initialization of crypto operations.

While here, add an assert that checks for DRA7 TRNG being used before
initialization is complete.

Signed-off-by: Andrew Davis <afd@ti.com>
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
Acked-by: Jens Wiklander <jens.wiklander@linaro.org>