Skip to content

Support reading an u32 from a multi-value property

Dario Binacchi u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3dm: test: add test case for dev_read_u64 functionarch/sandbox/dts/test.dts include/test/ut.h test/dm/test-fdt.c+27 -02 replies
2/3dm: core: support reading a single indexed u32 valuearch/sandbox/dts/test.dts drivers/core/of_access.c drivers/core/ofnode.c +5 more+189 -01 reply
2/3dm: core: support reading a single indexed u32 value+0 -01 reply
3/3dm: core: refactor functions reading an u32 from dtdrivers/core/of_access.c drivers/core/ofnode.c+3 -361 reply
3/3dm: core: refactor functions reading an u32 from dt+0 -01 reply
3/3dm: core: refactor functions reading an u32 from dt+0 -02 replies

Reviews trailers per patch

All 6 patches have a Reviewed-by or Acked-by.

PatchSimon Glass
1/3R-b R-b
2/3R-b
2/3R-b
3/3R-b
3/3R-b
3/3R-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/3] Support reading an u32 from a multi-value property

The main part of the series consists of adding the dev_read_u32_index and dev_read_u32_index_default functions. During implementation and testing I noticed the lack of testing for the 64-bit data access functions.
I decided to add the 64-bit test patch to the series to avoid merge conflicts that could have occurred with the submission of a single separated patch. In fact, it also contains changes to the test/dm/test-fdt.c file.

If this series is accepted, it will be possible to evaluate the addition of functions for indexed access also for the dev_read_s32 and dev_read_u32u functions. Maybe to add in a second version of this series.

Dario Binacchi (3):
dm: test: add test case for dev_read_u64 function
dm: core: support reading a single indexed u32 value
dm: core: refactor functions reading an u32 from dt

 arch/sandbox/dts/test.dts |  2 ++
 drivers/core/of_access.c  | 38 ++++++++++++++++++------------
 drivers/core/ofnode.c     | 49 ++++++++++++++++++++++++++++-----------
 drivers/core/read.c       | 13 +++++++++++
 include/dm/of_access.h    | 19 +++++++++++++++
 include/dm/ofnode.h       | 25 ++++++++++++++++++++
 include/dm/read.h         | 40 ++++++++++++++++++++++++++++++++
 include/test/ut.h         | 16 +++++++++++++
 test/dm/test-fdt.c        | 39 +++++++++++++++++++++++++++++++
 9 files changed, 212 insertions(+), 29 deletions(-)
Signature · 1 line
2.17.1