OSDN Git Service

tpm2: add new tpm2 commands according to TCG 1.36
authorTomas Winkler <tomas.winkler@intel.com>
Fri, 19 Oct 2018 18:22:48 +0000 (21:22 +0300)
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Tue, 13 Nov 2018 11:46:29 +0000 (13:46 +0200)
commit899102bc45189522e02362cc39b1129ef283f120
tree7a4df871f6b0ba23cdeb362a93a77263127386ce
parent2ba5780ce30549cf57929b01d8cba6fe656e31c5
tpm2: add new tpm2 commands according to TCG 1.36

1. TPM2_CC_LAST has moved from 182 to 193
2. Convert tpm2_ordinal_duration from an array into a switch statement,
   as there are not so many commands that require special duration
   relative to a number of commands, the switch statement function
   is called tpm2_ordinal_duration_index().
3. Fix kdoc comments for tpm2_calc_ordinal_duration().

Signed-off-by: Tomas Winkler <tomas.winkler@intel.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>
drivers/char/tpm/tpm.h
drivers/char/tpm/tpm2-cmd.c