]> git.baikalelectronics.ru Git - kernel.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)
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Mon, 2 Sep 2019 14:08:34 +0000 (17:08 +0300)
commit25bf41d1bfc8306ad82d5022648c03fadcf97b80
treedddefcf4602a1665ab776b44360eb396aacfe853
parent7a2b21eddf5add2ff027b2a33e5116aaa1bba42e
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: 140b7e011cce ("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