mbox series

[v3,00/11] Some more cleanups

Message ID 20180524055017.8801-1-amitay@ozlabs.org
Headers show
Series Some more cleanups | expand

Message

Amitay Isaacs May 24, 2018, 5:50 a.m. UTC
Try to contain the use of libpdbg internal api.  Avoid including libpdbg
internal headers (assuming everything other than libpdbg.h is internal).
Hopefully we can expose all the public api only via libpdbg.h.

Fix up device trees, so there are no warnings from dtc.

Improve target selection by allowing numbers, lists and ranges.  The
options -p/-c/-t work in conjunction with -a for selecting "all" targets.

Now you can do "-a -c 1,2 -t 0-3".

Amitay Isaacs (11):
  main: Include string.h for memset
  main: Use pdbg logging api in pdbg
  main: Do not include libpdbg internal headers
  dt: Add missing #address-cells, #size-cells and reg properties
  Makefile: Don't suppress warnings from DTC
  main: Fix usage for expert option
  libpdbg/device: Add new targets in the order of traversal
  main: Return false on failure
  main: Overhaul target selection
  main: Print specific errors for invalid arguments
  main: Print specific errors for invalid commands

 Makefile.am      |   4 +-
 libpdbg/device.c |   2 +-
 p8-fsi.dts.m4    |   2 +
 p8-host.dts.m4   |   2 +
 p8-i2c.dts.m4    |   2 +
 p9-host.dts.m4   |   6 ++
 p9-kernel.dts.m4 |   6 ++
 p9-pib.dts.m4    |   4 +-
 src/cfam.c       |   2 -
 src/htm.c        |   8 +-
 src/htm.h        |   2 -
 src/main.c       | 201 +++++++++++++++++++++++++++++++++++------------
 src/main.h       |   4 +-
 src/mem.c        |   7 +-
 src/reg.c        |   3 +-
 src/scom.c       |   2 +-
 src/scom.h       |   2 -
 src/thread.c     |   5 +-
 src/thread.h     |   2 -
 19 files changed, 190 insertions(+), 76 deletions(-)