diff options
author | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2021-11-06 10:54:51 +0100 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2021-11-08 10:50:48 +0530 |
commit | be245acfffa297b5ed4e0c7bb473a6bd55231bf8 (patch) | |
tree | 836a0f3066e523588749c86b311166a6846a5f17 /include/sbi/riscv_encoding.h | |
parent | 57f094e67e0642a16889e9bce64266a4e378683b (diff) |
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>
Diffstat (limited to 'include/sbi/riscv_encoding.h')
0 files changed, 0 insertions, 0 deletions