]> git.baikalelectronics.ru Git - kernel.git/commit
tpm: turn on TPM on suspend for TPM 1.x
authorJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Fri, 22 Mar 2019 10:51:20 +0000 (12:51 +0200)
committerJames Morris <james.morris@microsoft.com>
Mon, 8 Apr 2019 22:58:52 +0000 (15:58 -0700)
commitbe2d459bc6cbf1b97124a576e3c982cf59df5ee9
treeb750c0c024caa9d047add14dbe52f4259080dcc5
parent45fcbb33d11336804d2b28b521664288d4a078b1
tpm: turn on TPM on suspend for TPM 1.x

tpm_chip_start/stop() should be also called for TPM 1.x devices on
suspend. Add that functionality back. Do not lock the chip because
it is unnecessary as there are no multiple threads using it when
doing the suspend.

Fixes: 5c5b996c8cb9 ("tpm: take TPM chip power gating out of tpm_transmit()")
Reported-by: Paul Zimmerman <pauldzim@gmail.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Tested-by: Domenico Andreoli <domenico.andreoli@linux.com>
Signed-off-by: James Morris <james.morris@microsoft.com>
drivers/char/tpm/tpm-interface.c