[PATCH v2 0/2] Add dm_rng_read_default() helper
Alexey Romanov
avromanov at salutedevices.com
Thu Nov 2 10:16:43 CET 2023
Hello!
This patchset adds dm_rng_read_default() helper function,
that selects the first rng device and uses it to obtain
random bytes.
V2:
- Move platform_get_rng_device() to rng-uclass.c.
- Re-implement it to get first successfully probed device.
- Use it in dm_rng_read_default().
Alexey Romanov (2):
rng: move platform_get_rng_device() to rng-uclass.c
rng: add dm_rng_read_default() helper
drivers/rng/rng-uclass.c | 34 ++++++++++++++++++++++++++++++++++
include/efi_rng.h | 2 --
include/rng.h | 21 +++++++++++++++++++++
lib/efi_loader/efi_rng.c | 27 ---------------------------
4 files changed, 55 insertions(+), 29 deletions(-)
--
2.30.1
More information about the U-Boot
mailing list