diff options
author | Lino Sanfilippo <l.sanfilippo@kunbus.com> | 2022-11-24 16:55:29 +0300 |
---|---|---|
committer | Jarkko Sakkinen <jarkko@kernel.org> | 2023-04-24 16:15:53 +0300 |
commit | 15d7aa4e46eba87242a320f39773aa16faddadee (patch) | |
tree | 3ac972989c5c3322037dec362e0f79736677ffba /drivers/hv/hv_kvp.c | |
parent | ed9be0e6c892a783800d77a41ca4c7255c6af8c5 (diff) | |
download | linux-15d7aa4e46eba87242a320f39773aa16faddadee.tar.xz |
tpm, tpm_tis: Claim locality before writing interrupt registers
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>
Diffstat (limited to 'drivers/hv/hv_kvp.c')
0 files changed, 0 insertions, 0 deletions