diff options
author | James Bottomley <James.Bottomley@HansenPartnership.com> | 2017-01-03 09:07:32 -0800 |
---|---|---|
committer | Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> | 2017-04-03 22:46:02 +0300 |
commit | fdc915f7f71939ad5a3dda3389b8d2d7a7c5ee66 (patch) | |
tree | ef6a2c935e96f15082832fda56cf4f10be9a97fd /drivers/char/dsp56k.c | |
parent | ecb38e2f521b01f0fd0b0a3261921b0bcc002dd0 (diff) | |
download | op-kernel-dev-fdc915f7f71939ad5a3dda3389b8d2d7a7c5ee66.zip op-kernel-dev-fdc915f7f71939ad5a3dda3389b8d2d7a7c5ee66.tar.gz |
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/dsp56k.c')
0 files changed, 0 insertions, 0 deletions