tpm: atmel: depend on X86
Subsystems (2)
PATCH 1/1 tpm: atmel: depend on X86
tpm_atmel probes for the chip at fixed x86 Super-I/O ports (0x4e) with inb()/outb(), so it only works on x86. TCG_ATMEL nevertheless depends only on HAS_IOPORT_MAP/HAS_IOPORT, which arm and arm64 also satisfy. There the probe is useless, and on platforms whose unbacked I/O access faults it oopses in init_atmel() at boot (e.g. arm/versatile):
Unable to handle kernel paging request at virtual address fee0004e PC is at init_atmel+0x34/0x244
TCG_NSC and TCG_TIS already "depends on X86" (commit 2f592f2a7d74 ("TPM:
NSC and TIS drivers X86 dependency fix")); TCG_ATMEL was missed. Add the same dependency.
--- drivers/char/tpm/Kconfig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/char/tpm/Kconfig +1 -2
@@ -163,8 +163,7 @@ config TCG_NSC config TCG_ATMEL tristate "Atmel TPM Interface" - depends on HAS_IOPORT_MAP - depends on HAS_IOPORT + depends on X86 help If you have a TPM security chip from Atmel say Yes and it will be accessible from within Linux. To compile this driver
Signature · 1 line
2.39.5 (Apple Git-154)
Quoted 35 lines · Karl Mehltretter
tpm_atmelprobes for the chip at fixed x86 Super-I/O ports (0x4e) with inb()/outb(), so it only works on x86.TCG_ATMELnevertheless depends only on HAS_IOPORT_MAP/HAS_IOPORT, which arm and arm64 also satisfy. There the probe is useless, and on platforms whose unbacked I/O access faults it oopses ininit_atmel()at boot (e.g. arm/versatile):Unable to handle kernel paging request at virtual address fee0004e PC is at init_atmel+0x34/0x244
TCG_NSCandTCG_TISalready "depends on X86" (commit2f592f2a7d74("TPM:
NSC and TIS drivers X86 dependency fix"));TCG_ATMELwas missed. Add the same dependency.Signed-off-by Karl Mehltretter <[email protected]>--- drivers/char/tpm/Kconfig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)drivers/char/tpm/Kconfig +1
-2@@ -163,8 +163,7 @@ config TCG_NSC config TCG_ATMEL tristate "Atmel TPM Interface" - depends on HAS_IOPORT_MAP - depends on HAS_IOPORT + depends on X86 help If you have a TPM security chip from Atmel say Yes and it will be accessible from within Linux. To compile this driverSignature · 1 line
2.39.5 (Apple Git-154)
BR, Jarkko