Re: [PATCH 4/4] tmp/tpm_crb: implement runtime pm for tpm_crb

2016-10-08 Thread Jarkko Sakkinen
sts.sourceforge.net; Jason Gunthorpe > > ; linux-kernel@vger.kernel.org > > Subject: Re: [PATCH 4/4] tmp/tpm_crb: implement runtime pm for tpm_crb > > > > On Sat, Oct 08, 2016 at 01:37:31PM +, Winkler, Tomas wrote: > > > > > > > > On Sat, Oc

RE: [PATCH 4/4] tmp/tpm_crb: implement runtime pm for tpm_crb

2016-10-08 Thread Winkler, Tomas
> -Original Message- > From: Jarkko Sakkinen [mailto:jarkko.sakki...@linux.intel.com] > Sent: Saturday, October 08, 2016 19:01 > To: Winkler, Tomas > Cc: tpmdd-de...@lists.sourceforge.net; Jason Gunthorpe > ; linux-kernel@vger.kernel.org > Subject: Re: [PATCH 4/4] t

Re: [PATCH 4/4] tmp/tpm_crb: implement runtime pm for tpm_crb

2016-10-08 Thread Jarkko Sakkinen
On Sat, Oct 08, 2016 at 01:37:31PM +, Winkler, Tomas wrote: > > > > On Sat, Oct 08, 2016 at 02:59:39PM +0300, Tomas Winkler wrote: > > > From: "Winkler, Tomas" > > > > > > Utilize runtime_pm for driving tpm crb idle states. > > > The framework calls cmd_ready from the pm_runtime_resume handle

RE: [PATCH 4/4] tmp/tpm_crb: implement runtime pm for tpm_crb

2016-10-08 Thread Winkler, Tomas
> > On Sat, Oct 08, 2016 at 02:59:39PM +0300, Tomas Winkler wrote: > > From: "Winkler, Tomas" > > > > Utilize runtime_pm for driving tpm crb idle states. > > The framework calls cmd_ready from the pm_runtime_resume handler and > > go idle from the pm_runtime_suspend handler. > > The TPM framework

Re: [PATCH 4/4] tmp/tpm_crb: implement runtime pm for tpm_crb

2016-10-08 Thread Jarkko Sakkinen
On Sat, Oct 08, 2016 at 02:59:39PM +0300, Tomas Winkler wrote: > From: "Winkler, Tomas" > > Utilize runtime_pm for driving tpm crb idle states. > The framework calls cmd_ready from the pm_runtime_resume handler > and go idle from the pm_runtime_suspend handler. > The TPM framework should wake the

[PATCH 4/4] tmp/tpm_crb: implement runtime pm for tpm_crb

2016-10-08 Thread Tomas Winkler
From: "Winkler, Tomas" Utilize runtime_pm for driving tpm crb idle states. The framework calls cmd_ready from the pm_runtime_resume handler and go idle from the pm_runtime_suspend handler. The TPM framework should wake the device before transmit and receive. In case the runtime_pm framework is no