OSDN Git Service

tpm: move tpm_validate_commmand() to tpm2-space.c
authorJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Sat, 3 Nov 2018 01:04:56 +0000 (03:04 +0200)
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Wed, 13 Feb 2019 07:48:01 +0000 (09:48 +0200)
commitc3465a370fb371136f6ed7f1d15bcae1037270d3
tree9cca0448d5b2db31529927647741cd7e06d6bbc6
parent304ff672537c25339578273487a1d84e4936e006
tpm: move tpm_validate_commmand() to tpm2-space.c

Move tpm_validate_command() to tpm2-space.c and make it part of the
tpm2_prepare_space() flow. Make cc resolution as part of the TPM space
functionality in order to detach it from rest of the tpm_transmit()
flow.

Cc: James Bottomley <James.Bottomley@HansenPartnership.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Reviewed-by: Stefan Berger <stefanb@linux.ibm.com>
Tested-by: Stefan Berger <stefanb@linux.ibm.com>
Reviewed-by: Jerry Snitselaar <jsnitsel@redhat.com>
Reviewed-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Tested-by: Alexander Steffen <Alexander.Steffen@infineon.com>
drivers/char/tpm/tpm-interface.c
drivers/char/tpm/tpm.h
drivers/char/tpm/tpm2-space.c