summaryrefslogtreecommitdiffstats
path: root/drivers/char/tpm/tpmrm-dev.c
diff options
context:
space:
mode:
authorTadeusz Struk <tadeusz.struk@intel.com>2018-09-10 10:18:33 -0700
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>2018-10-05 13:47:33 +0300
commit9e1b74a63f7760b525295161fc608b19b8ee19c4 (patch)
tree1e718fb6f19e74e449bf1a61a65621e23704f751 /drivers/char/tpm/tpmrm-dev.c
parentc3d477a725ef6b3d17609d5dafc644cccc070cb9 (diff)
downloadlinux-9e1b74a63f7760b525295161fc608b19b8ee19c4.tar.gz
linux-9e1b74a63f7760b525295161fc608b19b8ee19c4.tar.bz2
linux-9e1b74a63f7760b525295161fc608b19b8ee19c4.zip
tpm: add support for nonblocking operation
Currently the TPM driver only supports blocking calls, which doesn't allow asynchronous IO operations to the TPM hardware. This patch changes it and adds support for nonblocking write and a new poll function to enable applications, which want to take advantage of this. Tested-by: Philip Tricca <philip.b.tricca@intel.com> Signed-off-by: Tadeusz Struk <tadeusz.struk@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/tpmrm-dev.c')
-rw-r--r--drivers/char/tpm/tpmrm-dev.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/char/tpm/tpmrm-dev.c b/drivers/char/tpm/tpmrm-dev.c
index 96006c6b9696..0c751a79bbed 100644
--- a/drivers/char/tpm/tpmrm-dev.c
+++ b/drivers/char/tpm/tpmrm-dev.c
@@ -51,5 +51,6 @@ const struct file_operations tpmrm_fops = {
.open = tpmrm_open,
.read = tpm_common_read,
.write = tpm_common_write,
+ .poll = tpm_common_poll,
.release = tpmrm_release,
};