Skip to content

Reading size-cells and address-cells from a node should walk up the

matthias.bgg at kernel.org u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2libfdt: Make fdt_cells function accessiblescripts/dtc/libfdt/fdt_addresses.c scripts/dtc/libfdt/libfdt.h+3 -11 reply
2/2dm: core: Walk the tree to find address- and size-cells propertiesdrivers/core/ofnode.c include/dm/ofnode.h include/dm/read.h+42 -83 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchSimon Glass
1/2
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] Reading size-cells and address-cells from a node should walk up the

From: Matthias Brugger <[email protected]>

parent stack to find the property. This is reflected through comments in the code, but actually not implemented. This leads to the fact that some DTBs worked by accident. Fix this by walking the tree when reading this properties.

After fixing the default size-cells returned when the property is not present this problem was made visible. When adding flash devices in qemu for arm64, the size-cells was wrongly inpterpreted and broke access to the second flash bank.

Matthias Brugger (2):
libfdt: Make fdt_cells function accessible
dm: core: Walk the tree to find address- and size-cells properties

 drivers/core/ofnode.c              |  8 +++----
 include/dm/ofnode.h                | 36 ++++++++++++++++++++++++++++++
 include/dm/read.h                  |  6 ++---
 scripts/dtc/libfdt/fdt_addresses.c |  2 +-
 scripts/dtc/libfdt/libfdt.h        |  2 ++
 5 files changed, 45 insertions(+), 9 deletions(-)
Signature · 1 line
2.26.0