tpm: remove @space from tpm_transmit()
Remove @space from tpm_transmit() API` in order to completely remove the bound between low-level transmission functionality and TPM spaces. The only real dependency existing is the amount of data saved before trying to send a command to the TPM. It doesn't really matter if we save always a bit more than needed so this commit changes the amount saved always to be the size of the TPM header and three handles. 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>
Showing
- drivers/char/tpm/tpm-dev-common.c 1 addition, 1 deletiondrivers/char/tpm/tpm-dev-common.c
- drivers/char/tpm/tpm-interface.c 11 additions, 14 deletionsdrivers/char/tpm/tpm-interface.c
- drivers/char/tpm/tpm-sysfs.c 2 additions, 3 deletionsdrivers/char/tpm/tpm-sysfs.c
- drivers/char/tpm/tpm.h 5 additions, 5 deletionsdrivers/char/tpm/tpm.h
- drivers/char/tpm/tpm1-cmd.c 7 additions, 9 deletionsdrivers/char/tpm/tpm1-cmd.c
- drivers/char/tpm/tpm2-cmd.c 14 additions, 16 deletionsdrivers/char/tpm/tpm2-cmd.c
- drivers/char/tpm/tpm2-space.c 2 additions, 4 deletionsdrivers/char/tpm/tpm2-space.c
- drivers/char/tpm/tpm_vtpm_proxy.c 1 addition, 1 deletiondrivers/char/tpm/tpm_vtpm_proxy.c
Loading
Please register or sign in to comment