]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
tpm, tpm_tis: Extend locality handling to TPM2 in tpm_tis_gen_interrupt()
authorJarkko Sakkinen <jarkko@kernel.org>
Mon, 10 May 2021 12:28:30 +0000 (15:28 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 May 2021 08:29:25 +0000 (10:29 +0200)
commite86c4d98e587d9055fee03935860178de3e1f28f
tree171dc5327690df4e7b28573ef263188b21569410
parent1bdc28f44f376a9db8d4eb2a9c6b2e2bbc8e1865
tpm, tpm_tis: Extend locality handling to TPM2 in tpm_tis_gen_interrupt()

commit e630af7dfb450d1c00c30077314acf33032ff9e4 upstream.

The earlier fix (linked) only partially fixed the locality handling bug
in tpm_tis_gen_interrupt(), i.e. only for TPM 1.x.

Extend the locality handling to cover TPM2.

Cc: Hans de Goede <hdegoede@redhat.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/linux-integrity/20210220125534.20707-1-jarkko@kernel.org/
Fixes: a3fbfae82b4c ("tpm: take TPM chip power gating out of tpm_transmit()")
Reported-by: Lino Sanfilippo <LinoSanfilippo@gmx.de>
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
Tested-by: Lino Sanfilippo <LinoSanfilippo@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/char/tpm/tpm_tis_core.c