]> git.baikalelectronics.ru Git - uboot.git/commit
dm: core: Fix uclass_probe_all to really probe all devices
authorMichal Suchanek <msuchanek@suse.de>
Wed, 12 Oct 2022 19:57:50 +0000 (21:57 +0200)
committerSimon Glass <sjg@chromium.org>
Tue, 18 Oct 2022 03:17:12 +0000 (21:17 -0600)
commit497d45f5ca4e12182039b00e92a61fbc37cce717
treee8fc2f82951fafc1abc5c28f3231ba946be613ce
parent3f3616fb01ff727c4013998b4fd0de1ab791c257
dm: core: Fix uclass_probe_all to really probe all devices

uclass_probe_all uses uclass_first_device/uclass_next_device assigning
the return value.

The interface for getting meaningful error is
uclass_first_device_check/uclass_next_device_check, use it.

Also do not stop iteration when an error is encountered. Probing all
devices includes those that happen to be after a failing device in the
uclass order.

Fixes: 3a93786065 ("dm: core: add function uclass_probe_all() to probe all devices")
Signed-off-by: Michal Suchanek <msuchanek@suse.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/core/uclass.c
test/dm/test-fdt.c