Skip to content

Fix the devicetree parser for stdout-path

Nikos Nikoleris kvm 2 versions – Applied

Status from this message: Applied to arm/queue

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 of 4 patches 13 repliesApplied
  2. v13 of 4 patches 5 repliesSuperseded

Changes in v2 from the cover letter

- Added strtoul and minor fix in strrchr
- Fixes in libfdt_clean
- Minor fix in lib/libfdt/README

3 of 4 patches are in this archive. The cover letter announces 4.

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/4lib/string: Add strnlen, strrchr and strtoullib/stdlib.h lib/string.c lib/string.h+77 -99 replies
3/4Makefile: Remove overriding recipe for libfdt_cleanMakefile arm/Makefile.common powerpc/Makefile.common+9 -110 replies
4/4devicetree: Parse correctly the stdout-pathlib/devicetree.c lib/string.c lib/string.h+17 -60 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [kvm-unit-tests PATCH v2 0/4] Fix the devicetree parser for stdout-path

This set of patches fixes the way we parse the stdout-path property in the DT. The stdout-path property is used to set up the console. Prior to this, the code ignored the fact that stdout-path is made of the path to the uart node as well as parameters. As a result, it would fail to find the relevant DT node. In addition to minor fixes in the device tree code, this series pulls a new version of libfdt from upstream.

v1: https://lore.kernel.org/kvm/[email protected]/

Changes in v2:
- Added strtoul and minor fix in strrchr
- Fixes in libfdt_clean
- Minor fix in lib/libfdt/README

Thanks,

Nikos

Nikos Nikoleris (4):
lib/string: Add strnlen, strrchr and strtoul
libfdt: Pull v1.6.0
Makefile: Remove overriding recipe for libfdt_clean
devicetree: Parse correctly the stdout-path

 lib/libfdt/README            |   5 +-
 Makefile                     |  16 +-
 arm/Makefile.common          |   2 +-
 lib/libfdt/Makefile.libfdt   |  10 +-
 powerpc/Makefile.common      |   2 +-
 lib/libfdt/version.lds       |  24 +-
 lib/libfdt/fdt.h             |  53 +--
 lib/libfdt/libfdt.h          | 766 +++++++++++++++++++++++++-----
 lib/libfdt/libfdt_env.h      | 109 ++---
 lib/libfdt/libfdt_internal.h | 206 +++++---
 lib/stdlib.h                 |  12 +
 lib/string.h                 |   5 +-
 lib/devicetree.c             |  15 +-
 lib/libfdt/fdt.c             | 200 +++++---
 lib/libfdt/fdt_addresses.c   | 101 ++++
 lib/libfdt/fdt_check.c       |  74 +++
 lib/libfdt/fdt_empty_tree.c  |  48 +-
 lib/libfdt/fdt_overlay.c     | 881 +++++++++++++++++++++++++++++++++++
 lib/libfdt/fdt_ro.c          | 512 +++++++++++++++-----
 lib/libfdt/fdt_rw.c          | 231 +++++----
 lib/libfdt/fdt_strerror.c    |  53 +--
 lib/libfdt/fdt_sw.c          | 297 ++++++++----
 lib/libfdt/fdt_wip.c         |  90 ++--
 lib/string.c                 |  77 ++-
 24 files changed, 2948 insertions(+), 841 deletions(-)
 create mode 100644 lib/stdlib.h
 create mode 100644 lib/libfdt/fdt_addresses.c
 create mode 100644 lib/libfdt/fdt_check.c
 create mode 100644 lib/libfdt/fdt_overlay.c
Signature · 1 line
2.25.1