]> git.baikalelectronics.ru Git - kernel.git/commit
tpm: add support for nonblocking operation
authorTadeusz Struk <tadeusz.struk@intel.com>
Mon, 10 Sep 2018 17:18:33 +0000 (10:18 -0700)
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Fri, 5 Oct 2018 10:47:33 +0000 (13:47 +0300)
commitfff069bf8c1c3ed55c9a843d50e0d3e24de8840d
tree1e718fb6f19e74e449bf1a61a65621e23704f751
parenta96b82020738d27e9f83768ba8e84346d6049912
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>
drivers/char/tpm/tpm-dev-common.c
drivers/char/tpm/tpm-dev.c
drivers/char/tpm/tpm-dev.h
drivers/char/tpm/tpm-interface.c
drivers/char/tpm/tpm.h
drivers/char/tpm/tpmrm-dev.c