aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/tpm/tpm_i2c_stm_st33.c
diff options
context:
space:
mode:
authorJason Gunthorpe <jgunthorpe@obsidianresearch.com>2013-11-09 11:17:00 -0700
committerPeter Huewe <peterhuewe@gmx.de>2014-07-29 23:10:55 +0200
commitf07a5e9a331045e976a3d317ba43d14859d9407c (patch)
tree2a0b2e2feb5c77467605eb8e30c4f092c5227238 /drivers/char/tpm/tpm_i2c_stm_st33.c
parentMerge branch 'stable-3.16' of git://git.infradead.org/users/pcmoore/selinux into next (diff)
downloadlinux-dev-f07a5e9a331045e976a3d317ba43d14859d9407c.tar.xz
linux-dev-f07a5e9a331045e976a3d317ba43d14859d9407c.zip
tpm: Add missing tpm_do_selftest to ST33 I2C driver
Most device drivers do call 'tpm_do_selftest' which executes a TPM_ContinueSelfTest. tpm_i2c_stm_st33 is just pointlessly different, I think it is bug. These days we have the general assumption that the TPM is usable by the kernel immediately after the driver is finished, so we can no longer defer the mandatory self test to userspace. Cc: <stable@vger.kernel.org> # 3.12+ Reported-by: Richard Marciel <rmaciel@linux.vnet.ibm.com> Signed-off-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com> Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
Diffstat (limited to '')
-rw-r--r--drivers/char/tpm/tpm_i2c_stm_st33.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/char/tpm/tpm_i2c_stm_st33.c b/drivers/char/tpm/tpm_i2c_stm_st33.c
index 3b7bf2162898..4669e3713428 100644
--- a/drivers/char/tpm/tpm_i2c_stm_st33.c
+++ b/drivers/char/tpm/tpm_i2c_stm_st33.c
@@ -714,6 +714,7 @@ tpm_st33_i2c_probe(struct i2c_client *client, const struct i2c_device_id *id)
}
tpm_get_timeouts(chip);
+ tpm_do_selftest(chip);
dev_info(chip->dev, "TPM I2C Initialized\n");
return 0;