[PATCH v2 2/2] mtd: rawnand: renesas: Use runtime PM instead of the raw clock API
Miquel Raynal
miquel.raynal at bootlin.com
Fri May 13 03:42:37 PDT 2022
Hi Geert,
geert at linux-m68k.org wrote on Thu, 12 May 2022 17:37:52 +0200:
> Hi Miquel,
>
> On Thu, May 12, 2022 at 5:27 PM Miquel Raynal <miquel.raynal at bootlin.com> wrote:
> > On Mon, 2022-05-09 at 15:49:43 UTC, Miquel Raynal wrote:
> > > This NAND controller is part of a well defined power domain handled by
> > > the runtime PM core. Let's keep the harmony with the other RZ/N1 drivers
> > > and exclusively use the runtime PM API to enable/disable the clocks.
> > >
> > > We still need to retrieve the external clock rate in order to derive the
> > > NAND timings, but that is not a big deal, we can still do that in the
> > > probe and just save this value to reuse it later.
> > >
> > > Signed-off-by: Miquel Raynal <miquel.raynal at bootlin.com>
> >
> > Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next.
>
> Without moving the pm_runtime_get_sync() call
> (better: pm_runtime_resume_and_get()) before the first hardware register
> access?
That was an accidental move, thanks for noticing.
Thanks,
Miquèl
More information about the linux-mtd
mailing list