selftests/tpm2: Open tpm dev in unbuffered mode
authorTadeusz Struk <tadeusz.struk@intel.com>
Tue, 12 Feb 2019 23:42:05 +0000 (15:42 -0800)
committerJames Morris <james.morris@microsoft.com>
Mon, 8 Apr 2019 22:58:55 +0000 (15:58 -0700)
commit6da70580af9612accf042b37564d73e787af39b4
treed34765e2d838f5b139ab38d7f2b3f7bc43fe2a84
parentf1a0ba6cccff75d882204cae1f154f17620b3c4a
selftests/tpm2: Open tpm dev in unbuffered mode

In order to have control over how many bytes are read or written
the device needs to be opened in unbuffered mode.

Signed-off-by: Tadeusz Struk <tadeusz.struk@intel.com>
Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Tested-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: James Morris <james.morris@microsoft.com>
tools/testing/selftests/tpm2/tpm2.py