RE: [PATCH v2] mtd: intel-dg: wake card on operations

From: Usyskin, Alexander

Date: Wed Oct 22 2025 - 10:26:29 EST


> Subject: Re: [PATCH v2] mtd: intel-dg: wake card on operations
>
> Hi Alexander,
>
> On 21/10/2025 at 15:32:46 +03, Alexander Usyskin
> <alexander.usyskin@xxxxxxxxx> wrote:
>
> > The Intel DG cards do not have separate power control for
> > persistent memory.
> > The memory is available when the whole card is awake.
> >
> > Enable runtime PM in mtd driver to notify parent graphics driver
> > that whole card should be kept awake while nvm operations are
> > performed through this driver.
> >
> > CC: Lucas De Marchi <lucas.demarchi@xxxxxxxxx>
> > Signed-off-by: Alexander Usyskin <alexander.usyskin@xxxxxxxxx>
> > ---
>
> I am curious to know why this now works, whereas in your previous
> attempt (which had to be reverted) we had to do a lot more.
>

The reverted attempt was to always create mtd master device and use
normal device hierarchy in power management.
Here the power management manipulated directly on the parent device
without involving mtd master that may not be initialized.

- -
Thanks,
Sasha


> Thanks,
> Miquèl