devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/8] of/fdt: Some bug fixes and cleanups
@ 2025-11-15 13:47 Yuntao Wang
  2025-11-15 13:47 ` [PATCH v3 1/8] of/fdt: Consolidate duplicate code into helper functions Yuntao Wang
                   ` (8 more replies)
  0 siblings, 9 replies; 14+ messages in thread
From: Yuntao Wang @ 2025-11-15 13:47 UTC (permalink / raw)
  To: Rob Herring, Saravana Kannan
  Cc: Geert Uytterhoeven, Catalin Marinas, James Morse, Baoquan He,
	Zhen Lei, Ard Biesheuvel, Mark Rutland, Geoff Levand,
	Andrew Morton, Changyuan Lyu, Alexander Graf,
	Mike Rapoport (Microsoft), devicetree, linux-kernel, Yuntao Wang

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/20251113155104.226617-1-yuntao.wang@linux.dev/
v1: https://lore.kernel.org/linux-devicetree/20251112143520.233870-1-yuntao.wang@linux.dev/

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

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

end of thread, other threads:[~2025-11-20 14:32 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-15 13:47 [PATCH v3 0/8] of/fdt: Some bug fixes and cleanups Yuntao Wang
2025-11-15 13:47 ` [PATCH v3 1/8] of/fdt: Consolidate duplicate code into helper functions Yuntao Wang
2025-11-17  7:01   ` Krzysztof Kozlowski
2025-11-17 11:56     ` Yuntao Wang
2025-11-17 12:34       ` Geert Uytterhoeven
2025-11-17 13:32         ` Yuntao Wang
2025-11-15 13:47 ` [PATCH v3 2/8] of/fdt: Fix the len check in early_init_dt_check_for_elfcorehdr() Yuntao Wang
2025-11-15 13:47 ` [PATCH v3 3/8] of/fdt: Fix the len check in early_init_dt_check_for_usable_mem_range() Yuntao Wang
2025-11-15 13:47 ` [PATCH v3 4/8] of/fdt: Fix incorrect use of dt_root_addr_cells in early_init_dt_check_kho() Yuntao Wang
2025-11-15 13:47 ` [PATCH v3 5/8] of/fdt: Simplify the logic of early_init_dt_scan_memory() Yuntao Wang
2025-11-15 13:47 ` [PATCH v3 6/8] of/reserved_mem: Simplify the logic of __reserved_mem_reserve_reg() Yuntao Wang
2025-11-15 13:47 ` [PATCH v3 7/8] of/reserved_mem: Simplify the logic of fdt_scan_reserved_mem_reg_nodes() Yuntao Wang
2025-11-15 13:47 ` [PATCH v3 8/8] of/reserved_mem: Simplify the logic of __reserved_mem_alloc_size() Yuntao Wang
2025-11-20 14:32 ` [PATCH v3 0/8] of/fdt: Some bug fixes and cleanups Rob Herring

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).