Re: [PATCH 2/3] tpm: separate cmd_ready/go_idle from runtime_pm

2018-01-29 Thread Jarkko Sakkinen
On Tue, Jan 23, 2018 at 08:33:22AM -0700, Jason Gunthorpe wrote: > On Tue, Jan 23, 2018 at 03:08:41PM +0200, Jarkko Sakkinen wrote: > > On Tue, Jan 23, 2018 at 01:27:30PM +0200, Tomas Winkler wrote: > > > We cannot use go_idle cmd_ready commands via runtime_pm handles > > > as with the introduction

Re: [PATCH 2/3] tpm: separate cmd_ready/go_idle from runtime_pm

2018-01-23 Thread Jason Gunthorpe
On Tue, Jan 23, 2018 at 03:08:41PM +0200, Jarkko Sakkinen wrote: > On Tue, Jan 23, 2018 at 01:27:30PM +0200, Tomas Winkler wrote: > > We cannot use go_idle cmd_ready commands via runtime_pm handles > > as with the introduction of localities this is no longer an optional > > feature, while runtime p

Re: [PATCH 2/3] tpm: separate cmd_ready/go_idle from runtime_pm

2018-01-23 Thread Jarkko Sakkinen
On Tue, Jan 23, 2018 at 01:27:30PM +0200, Tomas Winkler wrote: > We cannot use go_idle cmd_ready commands via runtime_pm handles > as with the introduction of localities this is no longer an optional > feature, while runtime pm can be not enabled. > Though cmd_ready/go_idle provides power saving fe

[PATCH 2/3] tpm: separate cmd_ready/go_idle from runtime_pm

2018-01-23 Thread Tomas Winkler
We cannot use go_idle cmd_ready commands via runtime_pm handles as with the introduction of localities this is no longer an optional feature, while runtime pm can be not enabled. Though cmd_ready/go_idle provides power saving feature, it's also part of TPM2 protocol and should be called explicitly.