tpm/ppi: Enable submission of optional command parameter for PPI 1.3
authorStefan Berger <stefanb@linux.ibm.com>
Thu, 17 Jan 2019 17:41:35 +0000 (12:41 -0500)
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Wed, 13 Feb 2019 07:48:53 +0000 (09:48 +0200)
commit50a81b60bfe075a0023670ff86558abd02536799
tree2df7d84a00bebee64fd245021f593256d6fcc105
parent8b60c79bcc102dba22da684c7e51e9bab1d44237
tpm/ppi: Enable submission of optional command parameter for PPI 1.3

This patch enables a user to specify the additional optional command
parameter by writing it into the request file:

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

For backwards compatibility:

If only 1 parameter is given then we assume this is the operation request
number.

   # 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