Commit 6a081960 authored by Lino Sanfilippo's avatar Lino Sanfilippo Committed by sanglipeng
Browse files

tpm, tpm_tis: Claim locality before writing TPM_INT_ENABLE register

stable inclusion
from stable-v5.10.180
commit cbb1dd27058eac7327a0c67e450fcac5b828d29d
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8DDFN

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=cbb1dd27058eac7327a0c67e450fcac5b828d29d



--------------------------------

[ Upstream commit 282657a8 ]

In disable_interrupts() the TPM_GLOBAL_INT_ENABLE bit is unset in the
TPM_INT_ENABLE register to shut the interrupts off. However modifying the
register is only possible with a held locality. So claim the locality
before disable_interrupts() is called.

Signed-off-by: default avatarLino Sanfilippo <l.sanfilippo@kunbus.com>
Tested-by: default avatarMichael Niewöhner <linux@mniewoehner.de>
Tested-by: default avatarJarkko Sakkinen <jarkko@kernel.org>
Reviewed-by: default avatarJarkko Sakkinen <jarkko@kernel.org>
Signed-off-by: default avatarJarkko Sakkinen <jarkko@kernel.org>
Stable-dep-of: 955df4f8 ("tpm, tpm_tis: Claim locality when interrupts are reenabled on resume")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent 8ee7c2b8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment