
29 Sep
2022
29 Sep
'22
noon
On Tue, 27 Sept 2022 at 15:38, Michal Suchanek msuchanek@suse.de wrote:
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: a59153dfeb ("dm: core: add function uclass_probe_all() to probe all devices") Signed-off-by: Michal Suchanek msuchanek@suse.de
drivers/core/uclass.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-)
Reviewed-by: Simon Glass sjg@chromium.org
but this could use a test e.g. in test/dm/core.c