mirror of
https://github.com/hardkernel/linux.git
synced 2026-03-25 03:50:24 +09:00
tpm: Add missing tpm_do_selftest to ST33 I2C driver
commit f07a5e9a33 upstream.
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.
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>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
This commit is contained in:
committed by
popcornmix
parent
1bde3fcaf5
commit
fccff5c28a
@@ -750,6 +750,7 @@ tpm_st33_i2c_probe(struct i2c_client *client, const struct i2c_device_id *id)
|
||||
}
|
||||
|
||||
tpm_get_timeouts(chip);
|
||||
tpm_do_selftest(chip);
|
||||
|
||||
i2c_set_clientdata(client, chip);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user