Skip to content

Commit 561d6ef

Browse files
Eddie Jamesjarkkojs
authored andcommitted
tpm: tis_i2c: Fix sanity check interrupt enable mask
The sanity check mask for TPM_INT_ENABLE register was off by 8 bits, resulting in failure to probe if the TPM_INT_ENABLE register was a valid value. Fixes: bbc23a0 ("tpm: Add tpm_tis_i2c backend for tpm_tis_core") Signed-off-by: Eddie James <eajames@linux.ibm.com> Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org> Tested-by: Joel Stanley <joel@jms.id.au> Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
1 parent 1506fba commit 561d6ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/char/tpm/tpm_tis_i2c.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949

5050
/* Masks with bits that must be read zero */
5151
#define TPM_ACCESS_READ_ZERO 0x48
52-
#define TPM_INT_ENABLE_ZERO 0x7FFFFF6
52+
#define TPM_INT_ENABLE_ZERO 0x7FFFFF60
5353
#define TPM_STS_READ_ZERO 0x23
5454
#define TPM_INTF_CAPABILITY_ZERO 0x0FFFF000
5555
#define TPM_I2C_INTERFACE_CAPABILITY_ZERO 0x80000000

0 commit comments

Comments
 (0)