Re: [RFC PATCH v2 2/6] of: reserved_mem: Swicth call to unflatten_device_tree() to after paging_init()

From: Rob Herring
Date: Wed Dec 06 2023 - 16:31:18 EST


On Mon, Dec 04, 2023 at 10:54:05AM -0800, Oreoluwa Babatunde wrote:
> Switch call to unflatten_device_tree() to after paging_init() on other
> archs to follow new order in which the reserved_mem regions are
> processed.

You did this so that you could allocate memory for the reserved regions.
But unflatten_device_tree() can already do allocations using memblock.
So the same thing should work for you.

I suspect that moving this will break any arch that called an of_* API
between the original call and the new call location.

Rob