]> Git Repo - linux.git/commit
char: tpm: cr50: Move i2c locking to request/relinquish locality ops
authorJan Dabros <[email protected]>
Thu, 10 Oct 2024 09:15:59 +0000 (09:15 +0000)
committerJarkko Sakkinen <[email protected]>
Thu, 21 Nov 2024 22:48:27 +0000 (00:48 +0200)
commit44637b0b40f47629ff78a73744755e6535e0970e
tree3c18179b5dc9b4a568d0b59d634af0cd0eb73944
parent932e3a5e1ea31712c91e6b4c64d0c7f675315ab4
char: tpm: cr50: Move i2c locking to request/relinquish locality ops

Move i2c locking primitives to request_locality and relinquish_locality
callbacks, what effectively blocks TPM bus for the whole duration of
logical TPM operation.

With this in place, cr50-equipped TPM may be shared with external CPUs -
assuming that underneath i2c controller driver is aware of this setup
(see i2c-designware-amdpsp as an example).

Signed-off-by: Jan Dabros <[email protected]>
Signed-off-by: Jarkko Sakkinen <[email protected]>
drivers/char/tpm/tpm_tis_i2c_cr50.c
This page took 0.052274 seconds and 4 git commands to generate.