u-boot/drivers/tpm
Simon Glass 275777bc94 tpm: cr50: Support opening the TPM multiple times
The tpm_auto_start() function is used in tests and assumes that it can
open the TPM even if it is already open and a locality claimed. The cr50
driver does not use the common TPM2 TIS code so lacks a check for the
is_open field of struct tpm_chip and in fact it doesn't use that struct.

Add an equivalent check to cr50_i2c_open().

This fixes all init sequences on that TPM -- e.g 'tpm init && tpm init'
or 'tpm autostart && tpm init' used to hang

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
2025-04-14 22:59:01 +03:00
..
cr50_i2c.c tpm: cr50: Support opening the TPM multiple times 2025-04-14 22:59:01 +03:00
Kconfig tcg2: decouple eventlog size from efi 2025-01-28 08:59:23 +02:00
Makefile global: Rename SPL_TPL_ to PHASE_ 2024-10-11 11:44:48 -06:00
sandbox_common.c Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet" 2024-05-20 13:35:03 -06:00
sandbox_common.h doc: replace @return by Return: 2022-01-19 18:11:34 +01:00
tpm-uclass.c Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet" 2024-05-20 13:35:03 -06:00
tpm2_ftpm_tee.c Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet" 2024-05-20 13:35:03 -06: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 tpm: call tpm_tis_wait_init() after tpm_tis_init() 2024-08-06 14:01:14 +03:00
tpm2_tis_i2c.c Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet" 2024-05-20 13:35:03 -06:00
tpm2_tis_mmio.c tpm: unconstify tpm_tis_chip_data 2025-02-18 08:26:43 -06:00
tpm2_tis_sandbox.c Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet" 2024-05-20 13:35:03 -06:00
tpm2_tis_spi.c tpm: call tpm_tis_wait_init() after tpm_tis_init() 2024-08-06 14:01:14 +03:00
tpm_atmel_twi.c Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet" 2024-05-20 13:35:03 -06: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 Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet" 2024-05-20 13:35:03 -06:00
tpm_tis_lpc.c drivers: tpm: Remove duplicate newlines 2024-07-22 10:53:06 -06:00
tpm_tis_sandbox.c Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet" 2024-05-20 13:35:03 -06:00
tpm_tis_st33zp24_i2c.c Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet" 2024-05-20 13:35:03 -06:00
tpm_tis_st33zp24_spi.c Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet" 2024-05-20 13:35:03 -06:00