diff options
author | James Bottomley <James.Bottomley@HansenPartnership.com> | 2017-01-03 18:07:32 +0100 |
---|---|---|
committer | Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> | 2017-04-03 21:46:02 +0200 |
commit | fdc915f7f71939ad5a3dda3389b8d2d7a7c5ee66 (patch) | |
tree | ef6a2c935e96f15082832fda56cf4f10be9a97fd /drivers/char/tpm/tpm_of.c | |
parent | tpm: split out tpm-dev.c into tpm-dev.c and tpm-common-dev.c (diff) | |
download | linux-fdc915f7f71939ad5a3dda3389b8d2d7a7c5ee66.tar.xz linux-fdc915f7f71939ad5a3dda3389b8d2d7a7c5ee66.zip |
tpm: expose spaces via a device link /dev/tpmrm<n>
Currently the tpm spaces are not exposed to userspace. Make this
exposure via a separate device, which can now be opened multiple times
because each read/write transaction goes separately via the space.
Concurrency is protected by the chip->tpm_mutex for each read/write
transaction separately. The TPM is cleared of all transient objects
by the time the mutex is dropped, so there should be no interference
between the kernel and userspace.
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Tested-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Diffstat (limited to 'drivers/char/tpm/tpm_of.c')
0 files changed, 0 insertions, 0 deletions