Re: [PATCH v3 3/4] dax/mum: Save the dax mum platform device pointer

From: Jonathan Cameron
Date: Fri Apr 04 2025 - 09:34:54 EST


On Thu, 3 Apr 2025 13:33:14 -0500
Terry Bowman <terry.bowman@xxxxxxx> wrote:

> From: Nathan Fontenot <nathan.fontenot@xxxxxxx>

mum?

>
> In order to handle registering hmem devices for SOFT RESERVE
> resources after the dax hmem device initialization occurs
> we need to save a reference to the dax hmem platform device
> that will be used in a following patch.
>
> Saving the platform device pointer also allows us to clean
> up the walk_hmem_resources() routine to no require the
> struct device argument.
>
> There should be no functional changes.
>
> Signed-off-by: Nathan Fontenot <nathan.fontenot@xxxxxxx>
> Signed-off-by: Terry Bowman <terry.bowman@xxxxxxx>