Re: [PATCH] tpm/tpm_crb: enter the low power state upon device suspend

From: Jarkko Sakkinen
Date: Tue Mar 07 2017 - 04:56:13 EST


On Mon, Mar 06, 2017 at 06:19:59PM +0000, Winkler, Tomas wrote:
>
> >
> > On Mon, Mar 06, 2017 at 01:53:35AM +0200, Tomas Winkler wrote:
> > > This fix enables a platform to enter the idle state (suspend-to-idle)
> > >
> > > The driver needs to request explicitly go_idle upon completion from
> > > the pm suspend handler.
> > > The runtime pm is disabled on suspend during prepare state by calling
> > > pm_runtime_get_noresume, hence we cannot relay on runtime pm to leave
> > > the device in low power state. Symmetrically cmdReady is called upon
> > > resume.
> > >
> > > Signed-off-by: Tomas Winkler <tomas.winkler@xxxxxxxxx>
> >
> > LGTM
> >
> > Tested-by: Jarkko Sakkinen <jarkko.sakkinen@xxxxxxxxxxxxxxx>
> > Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@xxxxxxxxxxxxxxx>
> >
> > PS. What about Fixes? Does this need it?
>
> No, I don't think this is a regression caused by any patch, rather the pm solution was not complete.
> Thanks
> Tomas

It's in my tree now (and should be in linux-next too soon).

/Jarkko