tpm, tpm_tis: Claim locality before writing interrupt registers
stable inclusion from stable-v5.10.180 commit 140735c46d376cd4587ccd4dd6a501ae1076109e 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=140735c46d376cd4587ccd4dd6a501ae1076109e -------------------------------- [ Upstream commit 15d7aa4e ] In tpm_tis_probe_single_irq() interrupt registers TPM_INT_VECTOR, TPM_INT_STATUS and TPM_INT_ENABLE are modified to setup the interrupts. Currently these modifications are done without holding a locality thus they have no effect. Fix this by claiming the (default) locality before the registers are written. Since now tpm_tis_gen_interrupt() is called with the locality already claimed remove locality request and release from this function. Signed-off-by:Lino Sanfilippo <l.sanfilippo@kunbus.com> Tested-by:
Jarkko Sakkinen <jarkko@kernel.org> Reviewed-by:
Jarkko Sakkinen <jarkko@kernel.org> Signed-off-by:
Jarkko Sakkinen <jarkko@kernel.org> Stable-dep-of: 955df4f8 ("tpm, tpm_tis: Claim locality when interrupts are reenabled on resume") Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
sanglipeng <sanglipeng1@jd.com>
Loading
Please sign in to comment