UPSTREAM: drivers/pc80/tpm: Fix missing tis_close() function
tis_close() must be called after tis_open() otherwise the locked
locality isn't released and the sessions hangs.
Tested=PC Engines APU2
BUG=none
BRANCH=none
TEST=none
Change-Id: Idd14621de1685ac965e96ba8b05365b829690e10
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Original-Commit-Id: 35418f9814
Original-Change-Id: I1a06f6a29015708e4bc1de6e6678827c28b84e98
Original-Signed-off-by: Philipp Deppenwiese <zaolin@das-labor.org>
Original-Reviewed-on: https://review.coreboot.org/19535
Original-Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Original-Reviewed-by: Patrick Rudolph <siro@das-labor.org>
Reviewed-on: https://chromium-review.googlesource.com/498321
This commit is contained in:
parent
b58ed31843
commit
097d6e31c3
1 changed files with 3 additions and 1 deletions
|
|
@ -215,7 +215,6 @@ void init_tpm(int s3resume)
|
|||
if (tis_open())
|
||||
return;
|
||||
|
||||
|
||||
if (s3resume) {
|
||||
/* S3 Resume */
|
||||
printk(BIOS_SPEW, "TPM: Resume\n");
|
||||
|
|
@ -226,6 +225,7 @@ void init_tpm(int s3resume)
|
|||
* in S3, so it's already initialized.
|
||||
*/
|
||||
printk(BIOS_DEBUG, "TPM: Already initialized.\n");
|
||||
tis_close();
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
|
|
@ -234,6 +234,8 @@ void init_tpm(int s3resume)
|
|||
response, sizeof(response));
|
||||
}
|
||||
|
||||
tis_close();
|
||||
|
||||
if (result == TPM_SUCCESS) {
|
||||
printk(BIOS_SPEW, "TPM: OK.\n");
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue