]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 5 Oct 2019 11:14:03 +0000 (13:14 +0200)
commit43e8e81e357ce6e527321795fcf3279fc22c9874
treea0e279c76a80a9d3f11386e18b911d4496a303e9
parent830afcbc9391796a2c49a3fa9ef42e1691cc21be
tpm_tis_core: Turn on the TPM before probing IRQ's

commit 5b359c7c43727e624eac3efc7ad21bd2defea161 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/char/tpm/tpm_tis_core.c