coreboot-kgpe-d16/src
Vadim Bendebury 731ef9b7ad tpm2: handle failures more gracefully
When trying to bring up a device with a malfunctioning TPM2 chip, the
driver currently gets stuck waiting for SPI flow control, causing
bricked devices.

This patch puts a 100 ms cap on the waiting time - this should be
enough even for a longest NVRAM save operation which could be under
way on the TPM device.

BRANCH=gru
BUG=chrome-os-partner:59807
TEST=with a matching change in depthcharge, now a gru with corrupted
     SPI TPM comes up to the recovery screen (it was not showing signs
     of life before this change).

Change-Id: I63ef5dde8dddd9afeae91e396c157a1a37d47c80
Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-on: https://review.coreboot.org/17898
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Tested-by: build bot (Jenkins)
2016-12-16 16:13:22 +01:00
..
acpi
arch ACPI S3: Hide acpi_slp_type 2016-12-11 09:00:40 +01:00
commonlib buildsystem: Drop explicit (k)config.h includes 2016-12-08 19:46:53 +01:00
console
cpu ACPI S3: Flip ACPI_HUGE_LOWMEM_BACKUP default 2016-12-11 09:12:48 +01:00
device buildsystem: Drop explicit (k)config.h includes 2016-12-08 19:46:53 +01:00
drivers tpm2: handle failures more gracefully 2016-12-16 16:13:22 +01:00
ec ec/ene932: correct ACPI battery data fed into ToString() 2016-12-15 23:39:04 +01:00
include smbios.h: add missing SKU field to type3 table 2016-12-15 23:43:07 +01:00
lib lib/spd_bin: Check return code & remove dead code 2016-12-14 18:58:03 +01:00
mainboard google/eve: Enable native mode for UART pins in bootblock 2016-12-16 01:38:35 +01:00
northbridge nb/intel/gm45: Use lapic udelay in SMM 2016-12-13 17:56:04 +01:00
soc samsung/exynos5420: Fix test for src < 0 2016-12-16 15:57:56 +01:00
southbridge intel/i945: Use romstage_handoff for S3 2016-12-11 08:58:07 +01:00
superio sio/ite/it8783ef: Return (0) in ACPI _PSC methods 2016-12-13 22:49:24 +01:00
vboot lib/cbmem: allow anyone to use cbmem_possibly_online() 2016-12-15 23:11:13 +01:00
vendorcode vendorcode/amd: drop dead code 2016-12-14 18:02:40 +01:00
Kconfig ACPI S3: Flip ACPI_HUGE_LOWMEM_BACKUP default 2016-12-11 09:12:48 +01:00