lib: utils/irqchip: Skip initialize irqchip when dt is not enabled

When the dt node has a status property and the value is not ok or
okay, skip initializing irqchip.

Signed-off-by: Xiang W <wxjstz@126.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
This commit is contained in:
Xiang W
2024-06-11 19:19:30 +08:00
committed by Anup Patel
parent 5e3ad7d577
commit b1c7c750f7

View File

@@ -62,6 +62,9 @@ static int fdt_irqchip_cold_init(void)
drv_added = false;
while ((noff = fdt_find_match(fdt, noff,
drv->match_table, &match)) >= 0) {
if (!fdt_node_is_enabled(fdt,noff))
continue;
if (drv->cold_init) {
rc = drv->cold_init(fdt, noff, match);
if (rc == SBI_ENODEV)