]> www.infradead.org Git - users/jedix/linux-maple.git/commit
tpm: atmel: Drop PPC64 specific MMIO setup
authorRob Herring (Arm) <robh@kernel.org>
Wed, 6 Nov 2024 18:17:42 +0000 (20:17 +0200)
committerJarkko Sakkinen <jarkko@kernel.org>
Thu, 21 Nov 2024 22:56:50 +0000 (00:56 +0200)
commit5578b4347bb5d5dfc8eeb8ee2eb8248658707d9b
treec1c08dc47f8c3e836029e3f1ea8f83aebb653e6d
parent2e1827de1b0f22b420c9446a3c94e6cce8eb4da4
tpm: atmel: Drop PPC64 specific MMIO setup

The PPC64 specific MMIO setup open codes DT address functions rather
than using standard address parsing functions. The open-coded version
fails to handle any address translation and is not endian safe.

I haven't found any evidence of what platform used this. The only thing
that turned up was a PPC405 platform, but that is 32-bit and PPC405
support is being removed as well. CONFIG_TCG_ATMEL is not enabled for
any powerpc config and never was. The support was added in 2005 and
hasn't been touched since.

Rather than try to modernize and fix this code, just remove it.

[jarkko: fixed couple of style issues reported by checkpatch.pl --strict
 and put offset into parentheses in the macro declarations.]
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Acked-by: Michael Ellerman <mpe@ellerman.id.au>
Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
drivers/char/tpm/Kconfig
drivers/char/tpm/tpm_atmel.c
drivers/char/tpm/tpm_atmel.h [deleted file]