[PATCH 1/2 v2] tpm: add a function that performs selftest + startup