[PATCH v2 0/7] of/fdt: Some bug fixes and cleanups
From: Yuntao Wang
Date: Thu Nov 13 2025 - 10:52:12 EST
This patch series fixes several bugs related to dt_root_addr_cells and
dt_root_size_cells, and performs some cleanup.
Changelog:
v1: Consolidate duplicate code into helper functions
Links:
v1: https://lore.kernel.org/linux-devicetree/20251112143520.233870-11-yuntao.wang@xxxxxxxxx/t/
Yuntao Wang (7):
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()
drivers/of/fdt.c | 93 ++++++++++++++++++++++--------------
drivers/of/of_reserved_mem.c | 37 ++++----------
include/linux/of_fdt.h | 5 ++
3 files changed, 72 insertions(+), 63 deletions(-)
--
2.51.0