mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2025-08-24 15:31:22 +01:00
lib: utils/reset: Skip initialize reset when dt is not enabled
When the dt node has a status property and the value is not ok or okay, skip initializing reset. Signed-off-by: Xiang W <wxjstz@126.com> Reviewed-by: Anup Patel <anup@brainfault.org>
This commit is contained in:
@@ -26,6 +26,9 @@ int fdt_reset_driver_init(void *fdt, struct fdt_reset *drv)
|
||||
if (noff < 0)
|
||||
return SBI_ENODEV;
|
||||
|
||||
if (!fdt_node_is_enabled(fdt, noff))
|
||||
return SBI_ENODEV;
|
||||
|
||||
if (drv->init) {
|
||||
rc = drv->init(fdt, noff, match);
|
||||
if (rc && rc != SBI_ENODEV) {
|
||||
|
Reference in New Issue
Block a user