u-boot/drivers/tpm
Heinrich Schuchardt c3de051c41 tis: fix tpm_tis_remove()
tpm_tis_remove() leads to calling tpm_tis_ready() with the IO region
unmapped and chip->locality == -1 (locality released). This leads to a
crash in mmio_write_bytes().

The patch implements these changes:

tpm_tis_remove(): Unmap the IO region after calling tpm_tis_cleanup().

tpm_tis_cleanup(): Request locality before IO output and releasing
locality.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
2021-11-30 14:11:05 +02:00
..
cr50_i2c.c tpm: cr50: Drop unnecessary coral headers 2021-07-15 19:49:56 +08:00
Kconfig tpm2: Add a TPMv2 MMIO TIS driver 2021-11-10 20:57:54 +01:00
Makefile tpm: Use the new API on tpm2 spi driver 2021-11-10 20:57:54 +01:00
sandbox_common.c sandbox: tpm: Support the define-space command 2021-08-01 09:05:24 -06:00
sandbox_common.h sandbox: tpm: Support the define-space command 2021-08-01 09:05:24 -06:00
tpm-uclass.c treewide: Simply conditions with the new OF_REAL 2021-09-25 09:46:15 -06:00
tpm2_ftpm_tee.c dm: treewide: Rename auto_alloc_size members to be shorter 2020-12-13 08:00:25 -07:00
tpm2_ftpm_tee.h tpm2: ftpm: A driver for firmware TPM running inside TEE 2020-02-05 19:33:46 -07:00
tpm2_tis_core.c tis: fix tpm_tis_remove() 2021-11-30 14:11:05 +02:00
tpm2_tis_mmio.c tis: fix tpm_tis_remove() 2021-11-30 14:11:05 +02:00
tpm2_tis_sandbox.c sandbox: tpm: Support extending a PCR multiple times 2021-08-01 09:05:24 -06:00
tpm2_tis_spi.c tpm: Use the new API on tpm2 spi driver 2021-11-10 20:57:54 +01:00
tpm_atmel_twi.c drivers: tpm: atmel_twi: fix printf specifier compile warning 2021-11-17 13:47:36 +02:00
tpm_internal.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
tpm_tis.h tpm2: Introduce TIS tpm core 2021-11-10 20:57:54 +01:00
tpm_tis_infineon.c tpm: refactor function names and macros for infineon v1.2 TPM 2021-11-10 20:57:54 +01:00
tpm_tis_lpc.c tpm: refactor function names for LPC based TPMs 2021-11-10 20:57:54 +01:00
tpm_tis_sandbox.c sandbox: tpm: Correct handling of get-capability 2021-08-01 09:05:24 -06:00
tpm_tis_st33zp24_i2c.c dm: treewide: Rename auto_alloc_size members to be shorter 2020-12-13 08:00:25 -07:00
tpm_tis_st33zp24_spi.c dm: treewide: Rename dev_get_platdata() to dev_get_plat() 2020-12-13 16:51:09 -07:00