Re: [PATCH v3 3/6] of_reserved_mem: add a helper for rmem device_init op

From: Albert Esteve

Date: Mon Mar 16 2026 - 06:59:57 EST


On Sat, Mar 14, 2026 at 12:06 AM Rob Herring <robh@xxxxxxxxxx> wrote:
>
> On Fri, Mar 06, 2026 at 11:36:34AM +0100, Albert Esteve wrote:
> > Add a helper function wrapping internal reserved memory
> > device_init call and expose it externally.
>
> Why?
>
> The diff tells us what. The commit msg needs to tell us why. Maybe the
> rest of the series explains it, but this commit needs to stand on its
> own.

ACK.

This patch prepares for the heap implementation in patch #4, which
uses the new helper function. I will add the information to the commit
body.

>
> >
> > Use the new helper function within of_reserved_mem_device_init_by_idx().
> >
> > Signed-off-by: Albert Esteve <aesteve@xxxxxxxxxx>
> > ---
>
> Version history?

You mean track it in the commit body? History is already detailed in
the cover letter.

>
> > drivers/of/of_reserved_mem.c | 68 ++++++++++++++++++++++++++---------------
> > include/linux/of_reserved_mem.h | 8 +++++
> > 2 files changed, 52 insertions(+), 24 deletions(-)
>