diff options
author | Stefan Berger <stefanb@linux.vnet.ibm.com> | 2012-01-17 22:07:30 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-18 18:50:17 -0500 |
commit | be405411f712489f2f780ab085e1069e8fb85f19 (patch) | |
tree | 39816de2c022f940cfeb6bd3218f9346b91f31f7 /drivers/char/tpm/tpm.h | |
parent | 93c3d65b28bab6da520c2add9cb387a0303f8b2d (diff) |
tpm: fix (ACPI S3) suspend regression
This patch fixes an (ACPI S3) suspend regression introduced in commit
68d6e6713fcb ("tpm: Introduce function to poll for result of self test")
and occurring with an Infineon TPM and tpm_tis and tpm_infineon drivers
active.
The suspend problem occurred if the TPM was disabled and/or deactivated
and therefore the TPM_PCRRead checking the result of the (asynchronous)
self test returned an error code which then caused the tpm_tis driver to
become inactive and this then seemed to have negatively influenced the
suspend support by the tpm_infineon driver... Besides that the tpm_tis
drive may stay active even if the TPM is disabled and/or deactivated.
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Tested-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Rajiv Andrade <srajiv@linux.vnet.ibm.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/char/tpm/tpm.h')
-rw-r--r-- | drivers/char/tpm/tpm.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/char/tpm/tpm.h b/drivers/char/tpm/tpm.h index 8c1df302fbb6..010547138281 100644 --- a/drivers/char/tpm/tpm.h +++ b/drivers/char/tpm/tpm.h | |||
@@ -39,6 +39,9 @@ enum tpm_addr { | |||
39 | }; | 39 | }; |
40 | 40 | ||
41 | #define TPM_WARN_DOING_SELFTEST 0x802 | 41 | #define TPM_WARN_DOING_SELFTEST 0x802 |
42 | #define TPM_ERR_DEACTIVATED 0x6 | ||
43 | #define TPM_ERR_DISABLED 0x7 | ||
44 | |||
42 | #define TPM_HEADER_SIZE 10 | 45 | #define TPM_HEADER_SIZE 10 |
43 | extern ssize_t tpm_show_pubek(struct device *, struct device_attribute *attr, | 46 | extern ssize_t tpm_show_pubek(struct device *, struct device_attribute *attr, |
44 | char *); | 47 | char *); |