From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jason Gunthorpe Subject: Re: [PATCH] tpm_tis: Issue a TPM2_Shutdown for TPM2 devices. Date: Fri, 28 Apr 2017 16:16:48 -0600 Message-ID: <20170428221648.GA25935@obsidianresearch.com> References: <20170427182659.403-1-joshz@google.com> <20170428121226.7xnpfbxcjszrnz5d@intel.com> <20170428152748.GA32017@obsidianresearch.com> <20170428184325.GA15327@obsidianresearch.com> <20170428213905.GA19326@obsidianresearch.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: tpmdd-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org To: "Rafael J. Wysocki" Cc: tpmdd-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: tpmdd-devel@lists.sourceforge.net On Fri, Apr 28, 2017 at 11:45:53PM +0200, Rafael J. Wysocki wrote: > > The trouble is how to consistently get the machine shutdown callback > > from the driver core. > > It is not particularly clear what you mean here. Care to elaborate? The request is to have a way for the generic tpm code to be called before struct device_driver -> shutdown() Presumably by adding shutdown() to struct class like the suspend/resume PM methods? Jason ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot