tpm: introduce tpm_chip_start() and tpm_chip_stop()
authorJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Sun, 4 Nov 2018 19:18:46 +0000 (21:18 +0200)
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Wed, 13 Feb 2019 07:48:33 +0000 (09:48 +0200)
commit719b7d81f2048477f89f7303e2b4ddec8197e6e3
treeda5983336e23c58d3dba2a85326983baf54a07ce
parent2f257402ee981720d65080b1e3ce19f693f5c9c3
tpm: introduce tpm_chip_start() and tpm_chip_stop()

Encapsulate power gating and locality functionality to tpm_chip_start()
and tpm_chip_stop() in order to clean up the branching mess in
tpm_transmit().

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-chip.c
drivers/char/tpm/tpm-interface.c
drivers/char/tpm/tpm.h