[PATCH v3 6/7] tpm: expose spaces via a device link /dev/tpmrm

2017-03-03 Thread Jarkko Sakkinen
From: James Bottomley 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

[PATCH v3 6/7] tpm: expose spaces via a device link /dev/tpmrm

2017-03-03 Thread Jarkko Sakkinen
From: James Bottomley 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