kernel-fxtec-pro1x/drivers/char/tpm
Stefan Berger 1f86605729 tpm: Fix cancellation of TPM commands (polling mode)
On one of my machines the cancellation of TPM commands does not work.
The reason is that by writing into sysfs 'cancel' the tpm_tis_ready
call causes the status flag TPM_STS_VALID to be set in the statusregister.
However, the TIS driver seems to wait for TPM_STS_COMMAND_READY.
Once a 2nd time sysfs 'cancel' is written to, the TPM_STS_COMMAND_READY flag
also gets set, resulting in TPM_STS_VALID|TPM_STS_COMMAND_READY to be
read from the status register.

This patch now converts req_canceled into a function to enable more complex
comparisons against possible cancellation status codes.

Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Signed-off-by: Kent Yoder <key@linux.vnet.ibm.com>
2013-02-05 09:38:24 -06:00
..
Kconfig TPM: STMicroelectronics ST33 I2C BUILD STUFF 2013-02-05 09:38:23 -06:00
Makefile TPM: STMicroelectronics ST33 I2C BUILD STUFF 2013-02-05 09:38:23 -06:00
tpm.c tpm: Fix cancellation of TPM commands (polling mode) 2013-02-05 09:38:24 -06:00
tpm.h tpm: Fix cancellation of TPM commands (polling mode) 2013-02-05 09:38:24 -06:00
tpm_acpi.c TPM: Switch to __packed instead of __attribute__((packed)) 2013-02-05 09:38:22 -06:00
tpm_atmel.c tpm: Fix cancellation of TPM commands (polling mode) 2013-02-05 09:38:24 -06:00
tpm_atmel.h
tpm_eventlog.c tpm: modularize event log collection 2012-08-22 11:11:25 -05:00
tpm_eventlog.h drivers/char/tpm: Add securityfs support for event log 2012-08-22 16:22:47 -05:00
tpm_i2c_infineon.c tpm: Fix cancellation of TPM commands (polling mode) 2013-02-05 09:38:24 -06:00
tpm_i2c_stm_st33.c tpm: Fix cancellation of TPM commands (polling mode) 2013-02-05 09:38:24 -06:00
tpm_i2c_stm_st33.h tpm_i2c_stm_st33: fix oops when i2c client is unavailable 2013-02-05 09:38:24 -06:00
tpm_ibmvtpm.c tpm: Fix cancellation of TPM commands (polling mode) 2013-02-05 09:38:24 -06:00
tpm_ibmvtpm.h drivers/char/tpm: remove tasklet and cleanup 2012-11-01 15:23:14 -05:00
tpm_infineon.c Char/Misc driver merge for 3.8-rc1 2012-12-11 13:56:38 -08:00
tpm_nsc.c tpm: Fix cancellation of TPM commands (polling mode) 2013-02-05 09:38:24 -06:00
tpm_of.c drivers/char/tpm: Add securityfs support for event log 2012-08-22 16:22:47 -05:00
tpm_ppi.c driver/char/tpm: fix regression causesd by ppi 2012-10-10 09:50:56 -05:00
tpm_tis.c tpm: Fix cancellation of TPM commands (polling mode) 2013-02-05 09:38:24 -06:00