CHROMIUM: daisy: tpm: fail TPM probe if TPM is not started
authorLuigi Semenzato <semenzato@chromium.org>
Wed, 30 May 2012 22:09:06 +0000 (15:09 -0700)
committerOlof Johansson <olofj@chromium.org>
Wed, 27 Jun 2012 21:56:02 +0000 (14:56 -0700)
commit13f27732e5dbf0b8a2db1623ce7f4081b36867f6
tree6ec1e97ac57eadb78255d299f36b152003bb0326
parent89d0c28187ef044ab94f03e10098ca8e025c1674
CHROMIUM: daisy: tpm: fail TPM probe if TPM is not started

Some versions of u-boot don't start the TPM.  We want
the probe to fail in this case.  We could start the TPM
here, but then we would have to set it up compatibly
with what vboot does (including one-time initializations),
or we would hit more confusing errors along the way.

Note: this is tested with non-vboot firmware.  I will try
to test it with vboot firmware as well, but I might hit
snags at this point and might give up.

BUG=chrome-os-partner:8921
TEST=booted with non-vboot u-boot and noted that /dev/tpm0 does not exist

Change-Id: Iea04be737891eb67f428e4627f669301b936cb9e
Reviewed-on: https://gerrit-int.chromium.org/18683
Tested-by: Luigi Semenzato <semenzato@google.com>
Reviewed-by: Jonathan Kliegman <kliegs@google.com>
Reviewed-by: Olof Johansson <olofj@google.com>
Commit-Ready: Luigi Semenzato <semenzato@google.com>
drivers/char/tpm/tpm_tis_i2c.c