On Fri, Apr 28, 2017 at 3:16 PM, Jason Gunthorpe <[email protected]> wrote: > 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()
To clarify just a bit: I believe TPM2_Shutdown must be the *last* command sent to the TPM, so it's not as simple as "must be called before device-specific shutdown": if the device has a command it needs to send, it must do so before the core sends tpm2_shutdown (or at least must send another tpm2_shutdown when it's done). Josh ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ tpmdd-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/tpmdd-devel
