[PATCH 0/3] Support reading an u32 from a multi-value property

Dario Binacchi dariobin at libero.it
Sun Mar 29 18:04:39 CEST 2020


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

-- 
2.17.1



More information about the U-Boot mailing list