Skip to content

of/fdt: Some bug fixes and cleanups

Yuntao Wang linux-devicetree lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest8 patches 5 repliesIn review
  2. v27 patches 11 repliesSuperseded
  3. v110 patches 13 repliesApplied

Changes in v3 from the cover letter

- Use of_flat_dt_ instead of of_fdt_ as the prefix for the newly added helper functions

- Improve the internal logic of of_flat_dt_get_addr_size_prop() and

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8of/fdt: Consolidate duplicate code into helper functionsdrivers/of/fdt.c include/linux/of_fdt.h+50 -04 replies
2/8of/fdt: Fix the len check in early_init_dt_check_for_elfcorehdr()drivers/of/fdt.c+2 -80 replies
3/8of/fdt: Fix the len check in early_init_dt_check_for_usable_mem_range()drivers/of/fdt.c+11 -70 replies
4/8of/fdt: Fix incorrect use of dt_root_addr_cells in early_init_dt_check_kho()drivers/of/fdt.c+4 -120 replies
5/8of/fdt: Simplify the logic of early_init_dt_scan_memory()drivers/of/fdt.c+7 -90 replies
6/8of/reserved_mem: Simplify the logic of __reserved_mem_reserve_reg()drivers/of/of_reserved_mem.c+9 -140 replies
7/8of/reserved_mem: Simplify the logic of fdt_scan_reserved_mem_reg_nodes()drivers/of/of_reserved_mem.c+7 -180 replies
8/8of/reserved_mem: Simplify the logic of __reserved_mem_alloc_size()drivers/of/of_reserved_mem.c+7 -140 replies

Reviews trailers per patch

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

Read the v3 thread

Cover letter [PATCH v3 0/8] of/fdt: Some bug fixes and cleanups

This patch series fixes several bugs related to dt_root_addr_cells and dt_root_size_cells, and performs some cleanup.

Changelog:

v2 -> v3:
- Use of_flat_dt_ instead of of_fdt_ as the prefix for the newly added helper functions

- Improve the internal logic of of_flat_dt_get_addr_size_prop() and

    of_flat_dt_get_addr_size()

- Introduce the entry_index parameter for of_flat_dt_read_addr_size()

- Fix some warnings and coding-style issues

v1 -> v2:
- Consolidate duplicate code into helper functions

Links to previous patch series:

v2: https://lore.kernel.org/linux-devicetree/[email protected]/
v1: https://lore.kernel.org/linux-devicetree/[email protected]/

Yuntao Wang (8):
of/fdt: Consolidate duplicate code into helper functions of/fdt: Fix the len check in early_init_dt_check_for_elfcorehdr() of/fdt: Fix the len check in
early_init_dt_check_for_usable_mem_range()
of/fdt: Fix incorrect use of dt_root_addr_cells in
early_init_dt_check_kho()
of/fdt: Simplify the logic of early_init_dt_scan_memory() of/reserved_mem: Simplify the logic of __reserved_mem_reserve_reg() of/reserved_mem: Simplify the logic of
fdt_scan_reserved_mem_reg_nodes()
of/reserved_mem: Simplify the logic of __reserved_mem_alloc_size()

 drivers/of/fdt.c             | 101 ++++++++++++++++++++++-------------
 drivers/of/of_reserved_mem.c |  69 ++++++++----------------
 include/linux/of_fdt.h       |   9 ++++
 3 files changed, 97 insertions(+), 82 deletions(-)

--
2.51.0