tpm: take TPM chip power gating out of tpm_transmit()
Call tpm_chip_start() and tpm_chip_stop() in * tpm_chip_register() * tpm_class_shutdown() * tpm_del_char_device() * tpm_pm_suspend() * tpm_try_get_ops() and tpm_put_ops() * tpm2_del_space() And remove these calls from tpm_transmit(). The core reason for this change is that in tpm_vtpm_proxy a locality change requires a virtual TPM command (a command made up just for that driver). The consequence of this is that this commit removes the remaining nested calls. 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-chip.c 22 additions, 16 deletionsdrivers/char/tpm/tpm-chip.c
- drivers/char/tpm/tpm-interface.c 9 additions, 9 deletionsdrivers/char/tpm/tpm-interface.c
- drivers/char/tpm/tpm.h 0 additions, 9 deletionsdrivers/char/tpm/tpm.h
- drivers/char/tpm/tpm2-space.c 4 additions, 1 deletiondrivers/char/tpm/tpm2-space.c
- drivers/char/tpm/tpm_tis_core.c 4 additions, 0 deletionsdrivers/char/tpm/tpm_tis_core.c
- drivers/char/tpm/tpm_vtpm_proxy.c 1 addition, 2 deletionsdrivers/char/tpm/tpm_vtpm_proxy.c
Loading
Please register or sign in to comment