From: Jarkko Sakkinen Subject: Re: [PATCH] tpm/tpm_crb: enter the low power state upon device suspend Date: Tue, 7 Mar 2017 10:30:30 +0200 Message-ID: <20170307083030.a4yq7aqzdf7fnnoo@intel.com> References: <1488758015-12681-1-git-send-email-tomas.winkler@intel.com> <20170306144437.vlrilvo33rxans5t@intel.com> <5B8DA87D05A7694D9FA63FD143655C1B543A553C@hasmsx108.ger.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <5B8DA87D05A7694D9FA63FD143655C1B543A553C-Jy8z56yoSI8MvF1YICWikbfspsVTdybXVpNB7YpNyf8@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: tpmdd-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org To: "Winkler, Tomas" Cc: "linux-security-module-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , "tpmdd-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org" , "linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" List-Id: tpmdd-devel@lists.sourceforge.net 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 > > > > LGTM > > > > Tested-by: Jarkko Sakkinen > > Reviewed-by: Jarkko Sakkinen > > > > 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 ------------------------------------------------------------------------------ Announcing the Oxford Dictionaries API! The API offers world-renowned dictionary content that is easy and intuitive to access. Sign up for an account today to start using our lexical data to power your apps and projects. Get started today and enter our developer competition. http://sdm.link/oxford