Skip to content

Fix default values for address and size cells

Matthias Brugger u-boot 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest posting 2/20 of 4 patches 0 repliesNew
  2. v2 posting 1/21 of 4 patches 0 repliesSuperseded

Patches in v2 posting 2/2 No applies recorded yet

None of the 4 patches the cover letter announces are in this archive.

Reviews trailers per patch

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

Read the v2 thread

Cover letter [U-Boot] [PATCH v2 0/4] Fix default values for address and size cells
Quoted 37 lines · Simon Glass

Hi Matthias,

Quoted 34 lines · Matthias Brugger

Hi Simon,

Quoted 29 lines · matthias.bgg at kernel.org

From: Matthias Brugger <[email protected]>

The libftd implementation of U-Boot is outdated with the upstream project. Especially the default number of size-cells was wrong. This series fixes this by backporting the corresponding patches from the upstream project.

Changes since v1:
- fix spelling of U-Boot (patch 1 + 2 /4)
- add Reviewed-by tag (patch 1/4)
- fix the case of size-cells == 0 (patch 3/4)
- fix default address cells for livetree (patch 4/4)

v1 can be found here:
https://patchwork.ozlabs.org/patch/1137331/
https://patchwork.ozlabs.org/patch/1137330/

Matthias Brugger (4):
libfdt: fdt_address_cells() and fdt_size_cells()
libfdt: return correct value if #size-cells property is not present
libfdt: Allow #size-cells of 0
dm: Fix default address cells return value

 include/dm/of.h                    |  2 +-
 scripts/dtc/libfdt/fdt_addresses.c | 45 ++++++++++++++++--------------
 scripts/dtc/libfdt/libfdt.h        |  2 +-
 3 files changed, 26 insertions(+), 23 deletions(-)
Quoted 5 lines
Quoted 2 lines

Any comments on this? I tried to find your custodian tree, but wasn't able to do so and check if you took it already.

This was applied. Did you not get the emails on each patch?

I got emails saying that they were applied to u-boot-dm/next, but wasn't able to find that branch.

Seeing it now, not sure if I didn't look correctly. Anyway thank for merging these fixes.

Regards,
Matthias