tpm/ppi: Possibly show command parameter if TPM PPI 1.3 is used
authorStefan Berger <stefanb@linux.ibm.com>
Thu, 17 Jan 2019 17:41:34 +0000 (12:41 -0500)
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Wed, 13 Feb 2019 07:48:53 +0000 (09:48 +0200)
commit8b60c79bcc102dba22da684c7e51e9bab1d44237
tree21151ede3766400b80045bbff1c6767c2e5b91aa
parent9d4023ed4db6e01ff50cb68d782202c2f50760ae
tpm/ppi: Possibly show command parameter if TPM PPI 1.3 is used

TPM PPI 1.3 introduces an additional optional command parameter
that may be needed for some commands. Display the parameter if the
command requires such a parameter. Only command 23 needs one.

The PPI request file will show output like this then:

   # echo "23 16" > request
   # cat request
   23 16

   # echo "5" > request
   # cat request
   5

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Tested-by: David Safford <david.safford@ge.com>
Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
drivers/char/tpm/tpm_ppi.c