OSDN Git Service

tpm_tis_core: Turn on the TPM before probing IRQ's
authorStefan Berger <stefanb@linux.ibm.com>
Tue, 20 Aug 2019 12:25:17 +0000 (08:25 -0400)
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Mon, 2 Sep 2019 14:08:34 +0000 (17:08 +0300)
commit5b359c7c43727e624eac3efc7ad21bd2defea161
treedddefcf4602a1665ab776b44360eb396aacfe853
parent14591e2351ef36a5b7509ad19043bd8c4b9f241f
tpm_tis_core: Turn on the TPM before probing IRQ's

The interrupt probing sequence in tpm_tis_core cannot obviously run with
the TPM power gated. Power on the TPM with tpm_chip_start() before
probing IRQ's. Turn it off once the probing is complete.

Cc: linux-stable@vger.kernel.org
Fixes: a3fbfae82b4c ("tpm: take TPM chip power gating out of tpm_transmit()")
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
drivers/char/tpm/tpm_tis_core.c