opensbi/lib/utils
Heinrich Schuchardt be245acfff lib: sbi: error handling in fdt_reset_init()
The initialization of a reset driver may fail for various reasons, like
a PMIC based reset driver not finding the required I2C driver. The return
code of the init routine may take other error values than -ENODEV.

If the initialization of a reset driver fails, this should not lead to the
board hanging. It is enough that the reset driver does not call
sbi_system_reset_add_device() to avoid invoking the driver for a device
that could not be initialized.

Change the return type of fdt_reset_init() to void.
Print a message if an error occurs.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Dong Du <Dd_nirvana@sjtu.edu.cn>
Reviewed-by: Anup Patel <anup.patel@wdc.com>
2021-11-08 10:50:48 +05:30
..
fdt lib: utils/fdt: Add fdt_parse_timebase_frequency() function 2021-09-26 19:52:07 +05:30
gpio lib: utils/gpio: use list for drivers 2021-11-03 15:57:56 +05:30
ipi include: sbi_utils: Introduce an helper to get fdt base address 2021-11-02 11:23:16 +05:30
irqchip include: sbi_utils: Introduce an helper to get fdt base address 2021-11-02 11:23:16 +05:30
libfdt lib: utils/libfdt: Upgrade to v1.6.1 release 2021-06-22 17:42:29 +05:30
libquad lib: utils: Drop dependency on libgcc by importing part of FreeBSD's libquad 2021-07-11 21:01:44 +05:30
reset lib: sbi: error handling in fdt_reset_init() 2021-11-08 10:50:48 +05:30
serial include: sbi_utils: Introduce an helper to get fdt base address 2021-11-02 11:23:16 +05:30
sys lib: sbi: convert reset to list 2021-10-11 09:59:29 +05:30
timer include: sbi_utils: Introduce an helper to get fdt base address 2021-11-02 11:23:16 +05:30