opensbi/lib/utils/reset
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_reset.c lib: sbi: error handling in fdt_reset_init() 2021-11-08 10:50:48 +05:30
fdt_reset_gpio.c lib: utils/reset: Register separate GPIO system reset devices 2021-11-02 09:14:11 +05:30
fdt_reset_htif.c lib: sbi: Simplify system reset platform operations 2021-04-28 17:25:00 +05:30
fdt_reset_sifive_test.c lib: utils: Extend fdt_get_node_addr_size() for multiple register sets 2021-08-14 09:02:36 +05:30
fdt_reset_sunxi_wdt.c lib: sbi: convert reset to list 2021-10-11 09:59:29 +05:30
fdt_reset_thead.c lib: utils/irqchip: Automatically delegate T-HEAD PLIC access 2021-10-21 10:06:00 +05:30
fdt_reset_thead.h lib: utils: reset: Add T-HEAD sample platform reset driver 2021-04-22 15:13:53 +05:30
fdt_reset_thead_asm.S lib: utils: reset: Add T-HEAD sample platform reset driver 2021-04-22 15:13:53 +05:30
objects.mk lib: utils/reset: Add a sunxi watchdog reset driver 2021-09-14 13:24:53 +05:30