[PATCH v3] cmd: Add command to dump drivers and compatible strings

Simon Glass sjg at chromium.org
Thu Feb 20 03:23:20 CET 2020


Hi Bin,

On Wed, 19 Feb 2020 at 08:45, Bin Meng <bmeng.cn at gmail.com> wrote:
>
> Hi Simon,
>
> On Fri, Feb 7, 2020 at 1:46 AM Simon Glass <sjg at chromium.org> wrote:
> >
> > On Thu, 6 Feb 2020 at 10:03, Sean Anderson <seanga2 at gmail.com> wrote:
> > >
> > > This adds a subcommand to dm to dump out what drivers are installed, and their
> > > compatible strings. I have found this useful in ensuring that I have the correct
> > > drivers compiled, and that I have put in the correct compatible strings.
> > >
> > > Signed-off-by: Sean Anderson <seanga2 at gmail.com>
> > > Reviewed-by: Bin Meng <bmeng.cn at gmail.com>
> > > Tested-by: Bin Meng <bmeng.cn at gmail.com>
> > >
> > > ---
> > >
> > > Changes in v3:
> > > - Add python test
> > >
> > > Changes in v2:
> > > - Check if entry->of_match is NULL before accessing it
> > > - Remove trailing newline in help message
> > >
> > >  cmd/dm.c                 | 12 +++++++++++-
> > >  drivers/core/dump.c      | 20 ++++++++++++++++++++
> > >  include/dm/util.h        |  3 +++
> > >  test/py/tests/test_dm.py | 17 +++++++++++++++++
>
> Is this what you're looking for? I thought we need something in
> test/dm C test cases instead?

I would prefer C but this test only runs two commands so is not too bad.

Regards,
Simon


More information about the U-Boot mailing list