]> git.baikalelectronics.ru Git - kernel.git/commit
tpm: Remove read16/read32/write32 calls from tpm_tis_phy_ops
authorJohannes Holland <johannes.holland@infineon.com>
Mon, 21 Mar 2022 09:09:24 +0000 (10:09 +0100)
committerJarkko Sakkinen <jarkko@kernel.org>
Mon, 23 May 2022 15:47:49 +0000 (18:47 +0300)
commitd1ee125bb2a97f81f52b6e973a2d0afbe887591e
tree79df53afd01b6a399d895cbc3729af97a167d2c0
parent8d1b33b1261105ec5ad1268c98900cb8ad87f245
tpm: Remove read16/read32/write32 calls from tpm_tis_phy_ops

Only tpm_tis and tpm_tis_synquacer have a dedicated way to access
multiple bytes at once, every other driver will just fall back to
read_bytes/write_bytes. Therefore, remove the read16/read32/write32
calls and move their logic to read_bytes/write_bytes.

Suggested-by: Jarkko Sakkinen <jarkko@kernel.org>
Signed-off-by: Johannes Holland <johannes.holland@infineon.com>
Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
drivers/char/tpm/tpm_tis.c
drivers/char/tpm/tpm_tis_core.h
drivers/char/tpm/tpm_tis_spi.h
drivers/char/tpm/tpm_tis_spi_cr50.c
drivers/char/tpm/tpm_tis_spi_main.c
drivers/char/tpm/tpm_tis_synquacer.c