summaryrefslogtreecommitdiff
path: root/src/mainboard/facebook
diff options
context:
space:
mode:
authorRichard Spiegel <richard.spiegel@amd.corp-partner.google.com>2018-08-09 14:41:17 -0700
committerMartin Roth <martinroth@google.com>2018-08-14 21:51:58 +0000
commit7c1e959ff6cfe2280e9a2e9c635936768b661cd7 (patch)
tree7bedfac483d306bec2ae2fdfeb1307fb2562d476 /src/mainboard/facebook
parenta5ac91c2565ee2fd588c0dbcb48694d12340a3fc (diff)
drivers/i2c/tpm/cr50.c: Check if TPM was read
Under some conditions, cr50_i2c_read() can return without actually reading the TPM, which will leave access uninitialized. Set an initial value for access, and if TPM fails to respond in time check if at least TPM was read. This way avoids printing an uninitialized value. BUG=b:112253891 TEST=Build and boot grunt. Change-Id: I5ec7a99396db32971dc8485b77158d735ab1d788 Signed-off-by: Richard Spiegel <richard.spiegel@silverbackltd.com> Reviewed-on: https://review.coreboot.org/27995 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Martin Roth <martinroth@google.com> Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com>
Diffstat (limited to 'src/mainboard/facebook')
0 files changed, 0 insertions, 0 deletions