public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH 0/2] Reading size-cells and address-cells from a node should walk up the
@ 2020-04-08  9:35 matthias.bgg at kernel.org
  2020-04-08  9:35 ` [PATCH 1/2] libfdt: Make fdt_cells function accessible matthias.bgg at kernel.org
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: matthias.bgg at kernel.org @ 2020-04-08  9:35 UTC (permalink / raw)
  To: u-boot

From: Matthias Brugger <mbrugger@suse.com>

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(-)

-- 
2.26.0

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2020-04-19 23:37 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-08  9:35 [PATCH 0/2] Reading size-cells and address-cells from a node should walk up the matthias.bgg at kernel.org
2020-04-08  9:35 ` [PATCH 1/2] libfdt: Make fdt_cells function accessible matthias.bgg at kernel.org
2020-04-09 16:25   ` Simon Glass
2020-04-08  9:35 ` [PATCH 2/2] dm: core: Walk the tree to find address- and size-cells properties matthias.bgg at kernel.org
2020-04-09 16:25   ` Simon Glass
2020-04-11 18:05     ` Matthias Brugger
2020-04-19 23:37       ` Simon Glass
2020-04-08 14:48 ` [PATCH 0/2] Reading size-cells and address-cells from a node should walk up the Robin Randhawa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox