Re: [PATCH] of: of_reserved_mem: remove repeated call to get no-map property
From: Rob Herring
Date: Tue Apr 16 2024 - 09:16:03 EST
On Fri, Apr 12, 2024 at 11:09:38PM +0900, skseofh@xxxxxxxxx wrote:
> From: Daero Lee <skseofh@xxxxxxxxx>
>
> In __reserved_mem_alloc_size, of_get_flat_dt_prop is called and checked
> whether the "no-map" property exists for the node. In
> fdt_init_reserved_mem, the only caller of __reserved_mem_alloc_size,
> we checked this again for the same node. Therefore, repeated
> of_get_flat_dt_prop call was removed and 'nomap' was passed as an input
> parameter to the callee function.
This code is all about to get rearranged[1], so holding off on this.
Rob
[1] https://lore.kernel.org/lkml/20240328211543.191876-1-quic_obabatun@xxxxxxxxxxx/