]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.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)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 18 Jun 2021 09:06:55 +0000 (11:06 +0200)
commitbdfac3e480198fc5742f9bc7d9aac6e9f7a720aa
tree4b3f26f00233b270f1675e3e6aa09ef6b47a77c9
parentf3734627985f731a9cc80426115821a344d3908c
tpm, tpm_tis: Extend locality handling to TPM2 in tpm_tis_gen_interrupt()

BugLink: https://bugs.launchpad.net/bugs/1931292
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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/char/tpm/tpm_tis_core.c