Run TPM2_Shutdown on system shutdown
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest0 of 2 patches 1 replyIn review
Patches in v1 No applies recorded yet
None of the 2 patches the cover letter announces are in this archive.
Reviews trailers per patch
| Patch | Stefan Berger | Jarkko Sakkinen |
|---|---|---|
| Series | T-b R-b | R-b T-b R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v1 0/2] Run TPM2_Shutdown on system shutdown
This is a backport to the 4.4 stable kernel.
I had to manually apply a couple of cherry picks and resolve some merge conflicts, so some of this may be worth a closer look and test on Jarkko's or some other TPM maintainer's part
This patchset causes all devices in the tpm class to issue TPM2_Shutdown when the system is shutting down.
As a prerequisite, it adds a "shutdown" method to "struct class".
Backporting to 4.4 since this bug can lock users out of their TPMs.
drivers/base/core.c | 6 +++++- drivers/char/tpm/tpm-chip.c | 121 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-------------- drivers/char/tpm/tpm-dev.c | 15 +++++++++++---- drivers/char/tpm/tpm-interface.c | 49 ++++++++++++++++++++++++++----------------------- drivers/char/tpm/tpm-sysfs.c | 18 +++++++++++++++--- drivers/char/tpm/tpm.h | 15 +++++++++------ drivers/char/tpm/tpm2-cmd.c | 8 ++++---- drivers/char/tpm/tpm_atmel.c | 14 +++++++------- drivers/char/tpm/tpm_i2c_atmel.c | 16 ++++++++-------- drivers/char/tpm/tpm_i2c_infineon.c | 6 +++--- drivers/char/tpm/tpm_i2c_nuvoton.c | 22 +++++++++++----------- drivers/char/tpm/tpm_infineon.c | 22 +++++++++++----------- drivers/char/tpm/tpm_nsc.c | 20 ++++++++++---------- drivers/char/tpm/tpm_tis.c | 16 ++++++++-------- include/linux/device.h | 2 ++ 15 files changed, 237 insertions(+), 113 deletions(-)