Re: [PATCH] of: reserved_mem: Drop node_fixup, CMA can handle it internally again

From: Rob Herring (Arm)

Date: Fri Nov 06 2026 - 16:18:31 EST



On Thu, 05 Nov 2026 22:54:11 +0100, Marek Szyprowski wrote:
> The separate fixup step was needed because node initialization used to
> run too late, after paging_init(). Since commit aa05faf81583 ("of:
> reserved_mem: allocate and map the reserved_mem array early") node_init
> runs early enough again, so dma_contiguous_early_fixup() can be called
> directly from rmem_cma_setup() once the CMA region has been successfully
> initialized, as it was before commit 2c223f7239f37 ("of: reserved_mem:
> Restructure call site for dma_contiguous_early_fixup()").
>
> Drop the now unused node_fixup callback and its helper. This also fixes
> the premature call to fixup when region fails to initialize.
>
> Closes: https://sashiko.dev/#/bug/linux-61818eaa-5dc1-4457-bd21-3a9be2ed4d6d
> Signed-off-by: Marek Szyprowski <m.szyprowski@xxxxxxxxxxx>
> ---
> drivers/of/of_reserved_mem.c | 34 ---------------------------------
> include/linux/of_reserved_mem.h | 2 --
> kernel/dma/contiguous.c | 17 +++--------------
> 3 files changed, 3 insertions(+), 50 deletions(-)
>

Applied, thanks!