[PATCH 00/10] of/fdt: Some bug fixes and cleanups

From: Yuntao Wang

Date: Wed Nov 12 2025 - 09:37:16 EST


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

Links to the previous related patches:

https://lore.kernel.org/lkml/CAL_JsqJxar7z+VcBXwPTw5-Et2oC9bQmH_CtMtKhoo_-=zN2XQ@xxxxxxxxxxxxxx/

Yuntao Wang (10):
of/fdt: Introduce dt_root_addr_size_cells() and
dt_root_addr_size_bytes()
of/reserved_mem: Use dt_root_addr_size_bytes() instead of open-coding
it
of/reserved_mem: Use dt_root_addr_size_bytes() instead of open-coding
it
of/reserved_mem: Use dt_root_addr_size_bytes() instead of open-coding
it
of/fdt: Use dt_root_addr_size_bytes() instead of open-coding it
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: Use dt_root_addr_size_bytes() instead of open-coding it
of/fdt: Fix incorrect use of dt_root_addr_cells in
early_init_dt_check_kho()
of/address: Remove the incorrect and misleading comment

drivers/of/address.c | 4 ----
drivers/of/fdt.c | 14 +++++++-------
drivers/of/of_reserved_mem.c | 6 +++---
include/linux/of_fdt.h | 11 +++++++++++
4 files changed, 21 insertions(+), 14 deletions(-)

--
2.51.0