]> asedeno.scripts.mit.edu Git - linux.git/commit
tpm: provide a way to override the chip returned durations
authorJerry Snitselaar <jsnitsel@redhat.com>
Mon, 2 Sep 2019 14:27:34 +0000 (07:27 -0700)
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Tue, 12 Nov 2019 19:45:36 +0000 (21:45 +0200)
commit15d0b22c01e6320241fe4d570e02de2935b842bf
tree74a99476b6e11951303ca60b9a89e147376ede19
parentf2f5820e3ba6b7ce17dc7cc10a1e838378edcf75
tpm: provide a way to override the chip returned durations

Patch adds method ->update_durations to override returned
durations in case TPM chip misbehaves for TPM 1.2 drivers.

Cc: Peter Huewe <peterhuewe@gmx.de>
Cc: Jason Gunthorpe <jgg@ziepe.ca>
Signed-off-by: Alexey Klimov <aklimov@redhat.com>
Signed-off-by: Jerry Snitselaar <jsnitsel@redhat.com>
Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Tested-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> (!update_durations path)
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
drivers/char/tpm/tpm1-cmd.c
include/linux/tpm.h