Commit 44637b0b authored by Jan Dabros's avatar Jan Dabros Committed by Jarkko Sakkinen
Browse files

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: default avatarJan Dabros <jsd@semihalf.com>
Signed-off-by: default avatarJarkko Sakkinen <jarkko@kernel.org>
parent 932e3a5e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment