]> git.baikalelectronics.ru Git - kernel.git/commit
tpm: fix (ACPI S3) suspend regression
authorStefan Berger <stefanb@linux.vnet.ibm.com>
Wed, 18 Jan 2012 03:07:30 +0000 (22:07 -0500)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 18 Jan 2012 23:50:17 +0000 (15:50 -0800)
commit9571b766d29d15923d05276761abe1512e058e2f
tree39816de2c022f940cfeb6bd3218f9346b91f31f7
parent3181ede82b79682cbb7fab7617a91e957b077ac4
tpm: fix (ACPI S3) suspend regression

This patch fixes an (ACPI S3) suspend regression introduced in commit
4daf500b47b0 ("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>
drivers/char/tpm/tpm.c
drivers/char/tpm/tpm.h