Skip to content
Commit 6224acfc authored by Eddie James's avatar Eddie James Committed by Bruce Ashfield
Browse files

tpm: Add flag to use default cancellation policy

commit 7bfda9c7 upstream

The check for cancelled request depends on the VID of the chip, but
some chips share VID which shouldn't share their cancellation
behavior. This is the case for the Nuvoton NPCT75X, which should use
the default cancellation check, not the Winbond one.
To avoid changing the existing behavior, add a new flag to indicate
that the chip should use the default cancellation check and set it
for the I2C TPM2 TIS driver.

Fixes: bbc23a07

 ("tpm: Add tpm_tis_i2c backend for tpm_tis_core")
Signed-off-by: default avatarEddie James <eajames@linux.ibm.com>
Tested-by: default avatarJoel Stanley <joel@jms.id.au>
Reviewed-by: default avatarJarkko Sakkinen <jarkko@kernel.org>
Signed-off-by: default avatarJarkko Sakkinen <jarkko@kernel.org>
Signed-off-by: default avatarLi Wang <li.wang@windriver.com>
Signed-off-by: default avatarBruce Ashfield <bruce.ashfield@gmail.com>
parent 1cd19d48
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment