From 54d7def6c254058f9458a0e26205b3c93a48bb42 Mon Sep 17 00:00:00 2001 From: Anup Patel Date: Thu, 20 May 2021 21:16:25 +0530 Subject: lib: utils: Try other FDT drivers when we see SBI_ENODEV We should try other FDT drivers when we see SBI_ENODEV returned by cold_init() of FDT driver. Signed-off-by: Anup Patel Reviewed-by: Atish Patra Reviewed-by: Xiang W --- lib/utils/timer/fdt_timer.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/utils/timer') diff --git a/lib/utils/timer/fdt_timer.c b/lib/utils/timer/fdt_timer.c index 92198cd..1fad42c 100644 --- a/lib/utils/timer/fdt_timer.c +++ b/lib/utils/timer/fdt_timer.c @@ -7,6 +7,7 @@ * Anup Patel */ +#include #include #include #include @@ -54,6 +55,8 @@ static int fdt_timer_cold_init(void) drv->match_table, &match)) >= 0) { if (drv->cold_init) { rc = drv->cold_init(fdt, noff, match); + if (rc == SBI_ENODEV) + continue; if (rc) return rc; } -- cgit v1.2.3