summaryrefslogtreecommitdiff
path: root/lib/utils/ipi
diff options
context:
space:
mode:
authorInochi Amaoto <[email protected]>2023-12-27 08:46:11 +0800
committerAnup Patel <[email protected]>2023-12-27 11:57:33 +0530
commitba29293dc947e13fa2e63de7ed289d7bb9b540f4 (patch)
treebea7f6343a8320a81f81f7f17006b70f189b7cc0 /lib/utils/ipi
parent63e09ad3f77218e34fb6cc1df88bedde9b9f38cb (diff)
lib: utils/timer: mtimer: only use regname for aclint
The parser will fail if the timer is clint timer and has regname property. As the regname is only meaningful for aclint, it is more robust to only check regname for aclint timer. Fixes: 6112d58 ("lib: utils/fdt: Allow to use reg-names when parsing ACLINT") Signed-off-by: Inochi Amaoto <[email protected]> Reviewed-by: Anup Patel <[email protected]>
Diffstat (limited to 'lib/utils/ipi')
-rw-r--r--lib/utils/ipi/fdt_ipi_mswi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/utils/ipi/fdt_ipi_mswi.c b/lib/utils/ipi/fdt_ipi_mswi.c
index 5432db6e..a709abe1 100644
--- a/lib/utils/ipi/fdt_ipi_mswi.c
+++ b/lib/utils/ipi/fdt_ipi_mswi.c
@@ -24,7 +24,7 @@ static int ipi_mswi_cold_init(void *fdt, int nodeoff,
if (!ms)
return SBI_ENOMEM;
- rc = fdt_parse_aclint_node(fdt, nodeoff, false,
+ rc = fdt_parse_aclint_node(fdt, nodeoff, false, false,
&ms->addr, &ms->size, NULL, NULL,
&ms->first_hartid, &ms->hart_count);
if (rc) {