tpm: add request_locality before write TPM_INT_ENABLE
authorChen Jun <chenjun102@huawei.com>
Wed, 13 Oct 2021 06:25:56 +0000 (06:25 +0000)
committerJarkko Sakkinen <jarkko@kernel.org>
Sat, 8 Jan 2022 22:18:34 +0000 (00:18 +0200)
commit0ef333f5ba7f24f5d8478425c163d3097f1c7afd
tree334370c672822ab3376a668a692ecd4856669fa3
parente7c124bd04631973a3cc0df19ab881b56d8a2d50
tpm: add request_locality before write TPM_INT_ENABLE

Locality is not appropriately requested before writing the int mask.
Add the missing boilerplate.

Fixes: e6aef069b6e9 ("tpm_tis: convert to using locality callbacks")
Signed-off-by: Chen Jun <chenjun102@huawei.com>
Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
drivers/char/tpm/tpm_tis_core.c