lib: utils/fdt: Fix DT property for APLIC delegation

During Linux AIA driver review, the APLIC DT property for interrupt
delegation was renamed to "riscv,delegation" so let's use the new DT
property name and fallback to old DT property name if the new DT
property name is not available.

Fixes: 34612193af ("lib: utils/irqchip: Add FDT based driver for APLIC")
Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Цей коміт міститься в:
Anup Patel authored and Anup Patel committed 2024-06-05 10:54:59 +05:30
1 джерело d962db2807
коміт df3db6a901
1 file changed
+2
+2
Переглянути файл
@@ -720,6 +720,8 @@ aplic_msi_parent_done:
deleg->child_index = 0;
}
del = fdt_getprop(fdt, nodeoff, "riscv,delegation", &len);
if (!del)
del = fdt_getprop(fdt, nodeoff, "riscv,delegate", &len);
if (!del || len < (3 * sizeof(fdt32_t)))
goto skip_delegate_parse;