]> git.baikalelectronics.ru Git - kernel.git/commit
tpm: Add missing tpm_do_selftest to ST33 I2C driver
authorJason Gunthorpe <jgunthorpe@obsidianresearch.com>
Sat, 9 Nov 2013 18:17:00 +0000 (11:17 -0700)
committerPeter Huewe <peterhuewe@gmx.de>
Tue, 29 Jul 2014 21:10:55 +0000 (23:10 +0200)
commit8197409d2d3bc739876100e18cfb7e54ebcb9188
tree2a0b2e2feb5c77467605eb8e30c4f092c5227238
parent3b06d2445919671003d493aad491c94614264776
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>
drivers/char/tpm/tpm_i2c_stm_st33.c