zephyr/drivers/entropy
Valerio Setti 1e560e0a45 drivers: entropy: ease runtime requirements on BT HCI
On platforms like nrf5340 there are 2 CPUs:
- one is the cpu_net which takes care of the radio stuff and
  owns the HW random generator
- one is the cpu_app which holds application data and polls
  cpu_net through HCI commands when it needs some random data.

The PSA core implemented in Mbed TLS needs random data at initialization
time, which happens early in the boot process. If we wait for BT to
be ready before issuing the HCI command, then PSA core intialization
will fail. In facts there is no need for the BT to be completely
initialized just to ask for some random data from the cpu_app to
the cpu_net since the HW random generator will likely be already
functional in the cpu_net.
So let's just try the HCI command and, if something is not right,
it will fail anyway. There's no need to anticipate the failure.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
2024-11-27 16:40:47 -05:00
..
CMakeLists.txt drivers: entropy: Initial support for trng driver of RA8 2024-08-22 14:24:57 -04:00
entropy_b91_trng.c
entropy_bt_hci.c drivers: entropy: ease runtime requirements on BT HCI 2024-11-27 16:40:47 -05:00
entropy_cc13xx_cc26xx.c
entropy_esp32.c drivers: entropy: esp32c6: Add support 2024-08-29 11:38:36 +02:00
entropy_gecko_se.c
entropy_gecko_trng.c
entropy_handlers.c build: namespace the generated headers with zephyr/ 2024-05-28 22:03:55 +02:00
entropy_litex.c
entropy_max32.c drivers: trng: Add TRNG driver for MAX32xxx MCUs 2024-07-28 07:30:20 +03:00
entropy_mcux_caam.c
entropy_mcux_rng.c
entropy_mcux_rnga.c
entropy_mcux_trng.c
entropy_neorv32_trng.c
entropy_npcx_drbg.c
entropy_nrf5.c entropy: Use proper flexible array 2024-08-05 18:38:42 -04:00
entropy_psa_crypto.c
entropy_renesas_ra.c drivers: entropy: Initial support for trng driver of RA8 2024-08-22 14:24:57 -04:00
entropy_rv32m1_trng.c
entropy_sam.c
entropy_smartbond.c entropy_smartbond: Clear pending interrupts after disabling TRNG 2024-08-19 17:23:18 -04:00
entropy_stm32.c entropy: Use proper flexible array 2024-08-05 18:38:42 -04:00
fake_entropy_native_bottom.c
fake_entropy_native_bottom.h
fake_entropy_native_posix.c entropy: native_posix: Add kconfig to not seed by default 2024-09-05 16:56:33 -04:00
Kconfig drivers: entropy: Initial support for trng driver of RA8 2024-08-22 14:24:57 -04:00
Kconfig.b91
Kconfig.bt_hci
Kconfig.cc13xx_cc26xx kconfig: replace known integer constants with variables 2024-07-27 20:49:15 +03:00
Kconfig.esp32
Kconfig.gecko
Kconfig.litex
Kconfig.max32 drivers: trng: Add TRNG driver for MAX32xxx MCUs 2024-07-28 07:30:20 +03:00
Kconfig.mcux
Kconfig.native_posix entropy: native_posix: Add kconfig to not seed by default 2024-09-05 16:56:33 -04:00
Kconfig.neorv32
Kconfig.npcx
Kconfig.nrf5 kconfig: replace known integer constants with variables 2024-07-27 20:49:15 +03:00
Kconfig.psa_crypto
Kconfig.renesas_ra drivers: entropy: Initial support for trng driver of RA8 2024-08-22 14:24:57 -04:00
Kconfig.rv32m1
Kconfig.sam
Kconfig.smartbond kconfig: replace known integer constants with variables 2024-07-27 20:49:15 +03:00
Kconfig.stm32 kconfig: replace known integer constants with variables 2024-07-27 20:49:15 +03:00