linux-stable/drivers/char/tpm
Jarkko Sakkinen 0178f9d0f6 tpm: Replace WARN_ONCE() with dev_err_once() in tpm_tis_status()
Do not tear down the system when getting invalid status from a TPM chip.
This can happen when panic-on-warn is used.

Instead, introduce TPM_TIS_INVALID_STATUS bitflag and use it to trigger
once the error reporting per chip. In addition, print out the value of
TPM_STS for improved forensics.

Link: https://lore.kernel.org/keyrings/YKzlTR1AzUigShtZ@kroah.com/
Fixes: 55707d531a ("tpm_tis: Add a check for invalid status")
Cc: stable@vger.kernel.org
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-06-23 16:51:04 +03:00
..
eventlog tpm: vtpm_proxy: Avoid reading host log when using a virtual device 2021-04-14 16:30:30 +03:00
st33zp24
Kconfig
Makefile
tpm-chip.c
tpm-dev-common.c
tpm-dev.c
tpm-dev.h
tpm-interface.c
tpm-sysfs.c
tpm.h
tpm1-cmd.c tpm: fix some doc warnings in tpm1-cmd.c 2021-06-23 16:51:03 +03:00
tpm2-cmd.c tpm: add longer timeout for TPM2_CC_VERIFY_SIGNATURE 2021-06-23 16:51:03 +03:00
tpm2-space.c
tpm_atmel.c
tpm_atmel.h
tpm_crb.c tpm_crb: Use IOMEM_ERR_PTR when function returns iomem 2021-06-23 16:51:03 +03:00
tpm_ftpm_tee.c
tpm_ftpm_tee.h
tpm_i2c_atmel.c
tpm_i2c_infineon.c
tpm_i2c_nuvoton.c
tpm_ibmvtpm.c
tpm_ibmvtpm.h
tpm_infineon.c
tpm_nsc.c
tpm_ppi.c
tpm_tis.c tpm_tis: Use DEFINE_RES_MEM() to simplify code 2021-06-23 16:51:03 +03:00
tpm_tis_core.c tpm: Replace WARN_ONCE() with dev_err_once() in tpm_tis_status() 2021-06-23 16:51:04 +03:00
tpm_tis_core.h tpm: Replace WARN_ONCE() with dev_err_once() in tpm_tis_status() 2021-06-23 16:51:04 +03:00
tpm_tis_i2c_cr50.c char: tpm: move to use request_irq by IRQF_NO_AUTOEN flag 2021-06-23 16:51:03 +03:00
tpm_tis_spi.h
tpm_tis_spi_cr50.c
tpm_tis_spi_main.c tpm_tis_spi: add missing SPI device ID entries 2021-06-23 16:51:03 +03:00
tpm_tis_synquacer.c
tpm_vtpm_proxy.c
tpmrm-dev.c
xen-tpmfront.c