aboutsummaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorJerry Snitselaar <[email protected]>2019-09-02 07:27:34 -0700
committerJarkko Sakkinen <[email protected]>2019-11-12 21:45:36 +0200
commit15d0b22c01e6320241fe4d570e02de2935b842bf (patch)
tree74a99476b6e11951303ca60b9a89e147376ede19 /include/linux
parentf2f5820e3ba6b7ce17dc7cc10a1e838378edcf75 (diff)
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 <[email protected]> Cc: Jason Gunthorpe <[email protected]> Signed-off-by: Alexey Klimov <[email protected]> Signed-off-by: Jerry Snitselaar <[email protected]> Reviewed-by: Jarkko Sakkinen <[email protected]> Tested-by: Jarkko Sakkinen <[email protected]> (!update_durations path) Signed-off-by: Jarkko Sakkinen <[email protected]>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/tpm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/tpm.h b/include/linux/tpm.h
index 53c0ea9ec9df..bb1d1ac7081d 100644
--- a/include/linux/tpm.h
+++ b/include/linux/tpm.h
@@ -67,6 +67,8 @@ struct tpm_class_ops {
u8 (*status) (struct tpm_chip *chip);
void (*update_timeouts)(struct tpm_chip *chip,
unsigned long *timeout_cap);
+ void (*update_durations)(struct tpm_chip *chip,
+ unsigned long *duration_cap);
int (*go_idle)(struct tpm_chip *chip);
int (*cmd_ready)(struct tpm_chip *chip);
int (*request_locality)(struct tpm_chip *chip, int loc);