tpm: Do not remap from ACPI resources again for Pluton TPM
authorValentin David <valentin.david@gmail.com>
Mon, 10 Jul 2023 20:27:49 +0000 (22:27 +0200)
committerJarkko Sakkinen <jarkko@kernel.org>
Mon, 17 Jul 2023 19:40:27 +0000 (19:40 +0000)
commitb1c1b98962d17a922989aa3b2822946bbb5c091f
tree7daf1825141e59b1cd609ae0c6530a6e3c2cde5c
parentbc825e851c2fe89c127cac1e0e5cf344c4940619
tpm: Do not remap from ACPI resources again for Pluton TPM

For Pluton TPM devices, it was assumed that there was no ACPI memory
regions. This is not true for ASUS ROG Ally. ACPI advertises
0xfd500000-0xfd5fffff.

Since remapping is already done in `crb_map_pluton`, remapping again
in `crb_map_io` causes EBUSY error:

[    3.510453] tpm_crb MSFT0101:00: can't request region for resource [mem 0xfd500000-0xfd5fffff]
[    3.510463] tpm_crb: probe of MSFT0101:00 failed with error -16

Cc: stable@vger.kernel.org # v6.3+
Fixes: 4d2732882703 ("tpm_crb: Add support for CRB devices based on Pluton")
Signed-off-by: Valentin David <valentin.david@gmail.com>
Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
drivers/char/tpm/tpm_crb.c