lib: utils/reset: Try initializing all reset devices in dt
authorXiang W <wxjstz@126.com>
Thu, 13 Jun 2024 15:03:07 +0000 (23:03 +0800)
committerAnup Patel <anup@brainfault.org>
Thu, 13 Jun 2024 16:18:03 +0000 (21:48 +0530)
commit62e178a0a7b989d7cab9b2d4e33b291bc9a58c65
treed085d33a7c43bb02a4c962f48899894a74c68f8f
parent3a94a3258039f225d068cb575844062c3f86bc03
lib: utils/reset: Try initializing all reset devices in dt

In DT, multiple reset devices may use the same driver, and they
may have different priorities. If rc is returned after the first
initialization, the highest priority device may be lost.

Fixes: a73ff043e991 (lib: utils/reset: Fix fdt_reset to search for more dt nodes)
Signed-off-by: Xiang W <wxjstz@126.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
lib/utils/reset/fdt_reset.c