summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/drivers/spi/tpm/tpm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/drivers/spi/tpm/tpm.c b/src/drivers/spi/tpm/tpm.c
index e1fec28a41..ceec0b0bc6 100644
--- a/src/drivers/spi/tpm/tpm.c
+++ b/src/drivers/spi/tpm/tpm.c
@@ -429,6 +429,9 @@ int tpm2_init(struct spi_slave *spi_if)
memcpy(spi_slave, spi_if, sizeof(*spi_if));
+ /* clear any pending irqs */
+ tis_plat_irq_status();
+
/*
* 150 ms should be enough to synchronize with the TPM even under the
* worst nested reset request conditions. In vast majority of cases