[PATCH v5 09/15] cmd: List all uclass devices regardless of probe error

Simon Glass sjg at chromium.org
Thu Sep 29 12:00:42 CEST 2022


On Tue, 27 Sept 2022 at 15:38, Michal Suchanek <msuchanek at suse.de> wrote:
>
> There are a few commands that iterate uclass with
> uclass_first_device/uclass_next_device or the _err variant.
>
> Use the _check class iterator variant to get devices that fail to probe
> as well, and print the status.
>
> Signed-off-by: Michal Suchanek <msuchanek at suse.de>
> ---
>  cmd/adc.c       | 22 ++++++++++------------
>  cmd/demo.c      | 16 ++++++++++------
>  cmd/gpio.c      | 15 +++++++++++----
>  cmd/pmic.c      | 15 ++++++++-------
>  cmd/regulator.c | 13 +++++++------
>  5 files changed, 46 insertions(+), 35 deletions(-)

With the errno change dropped:

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list