[PATCH v2 3/3] cmd: dm: Fixed/Added DM driver listing subcommands

Simon Glass sjg at chromium.org
Mon Mar 23 16:37:20 CET 2020


On Thu, 19 Mar 2020 at 10:14, Niel Fourie <lusus at denx.de> wrote:
>
> Renamed dm "drivers" subcommand to "compat" (as it listed
> compatibility strings) and prevent it from segfaulting when
> drivers have no of_match populated.
>
> Added a new "drivers" subcommand to dump a list of all known DM
> drivers and for each, their uclass id, uclass driver and names of
> attached devices.
>
> Added a new "static" subcommand to dump a list of DM drivers with
> statically defined platform data.
>
> Signed-off-by: Niel Fourie <lusus at denx.de>
> CC: Simon Glass <sjg at chromium.org>
> CC: Sean Anderson <seanga2 at gmail.com>
> ---
> Depends on: https://patchwork.ozlabs.org/patch/1234460/
>
> Changes in v2:
> - Add/extend Python tests
> - Fixed minor formatting/typographical errors
>
>  cmd/dm.c                 | 22 +++++++++++++++-
>  drivers/core/dump.c      | 55 +++++++++++++++++++++++++++++++++++++++-
>  include/dm/util.h        |  6 +++++
>  test/py/tests/test_dm.py | 22 ++++++++++++++--
>  4 files changed, 101 insertions(+), 4 deletions(-)

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

I'm not quite sold on the name 'static' here, but I suppose it makes sense.


More information about the U-Boot mailing list