]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
tpm_tis: fix iTPM probe via probe_itpm() function
authorMaciej S. Szmigiero <mail@maciej.szmigiero.name>
Wed, 25 Jan 2017 20:07:36 +0000 (22:07 +0200)
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Fri, 3 Feb 2017 20:03:14 +0000 (22:03 +0200)
commit419a16d9cda3408090704d5e3956c866e18f0af6
tree6ec81ea4b310fc1d58379cf5eae760d4b4d1f547
parentfa2825da6f5d6d45122bd990958970a175fb1aef
tpm_tis: fix iTPM probe via probe_itpm() function

probe_itpm() function is supposed to send command without an itpm flag set
and if this fails to repeat it, this time with the itpm flag set.

However, commit 41a5e1cf1fe15 ("tpm/tpm_tis: Split tpm_tis driver into a
core and TCG TIS compliant phy") moved the itpm flag from an "itpm"
variable to a TPM_TIS_ITPM_POSSIBLE chip flag, so setting the
(now function-local) itpm variable no longer had any effect.

Finally, this function-local itpm variable was removed by
commit 56af322156dbe9 ("tpm/tpm_tis: remove unused itpm variable")

Tested only on non-iTPM TIS TPM.

Signed-off-by: Maciej S. Szmigiero <mail@maciej.szmigiero.name>
Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
drivers/char/tpm/tpm_tis_core.c