[PATCH 1/3] of: reserved_mem: Add functions to parse "memory-region"
Daniel Baluta
daniel.baluta at gmail.com
Tue Mar 18 01:54:07 PDT 2025
On Tue, Mar 18, 2025 at 1:24 AM Rob Herring (Arm) <robh at kernel.org> 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 at kernel.org>
Reviewed-by: Daniel Baluta <daniel.baluta at nxp.com>
More information about the linux-arm-kernel
mailing list