Re: [PATCH 1/3] of: reserved_mem: Add functions to parse "memory-region"
From: Daniel Baluta
Date: Tue Mar 18 2025 - 04:52:46 EST
On Tue, Mar 18, 2025 at 1:24 AM Rob Herring (Arm) <robh@xxxxxxxxxx> wrote:
>
> Drivers with "memory-region" properties currently have to do their own
> parsing of "memory-region" properties. The result is all the drivers
> have similar patterns of a call to parse "memory-region" and then get
> the region's address and size. As this is a standard property, it should
> have common functions for drivers to use. Add new functions to count the
> number of regions and retrieve the region's address as a resource.
>
> Signed-off-by: Rob Herring (Arm) <robh@xxxxxxxxxx>
Reviewed-by: Daniel Baluta <daniel.baluta@xxxxxxx>