diff options
author | Tom Rini <trini@konsulko.com> | 2021-03-03 14:05:43 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-03-03 14:05:43 -0500 |
commit | 5a9d8633e5e5f5253010480fb0db3742b0ea1356 (patch) | |
tree | 6cef337796d50552504a3f0b90e07d32d2d88190 /lib/tpm-common.c | |
parent | c5219c4a18f2b27547ecd799914f94e48b0fa86f (diff) | |
parent | 63af92e837f3d7c21ab5fc4a96ffcbf202efaf90 (diff) |
Merge branch '2021-03-03-assorted-improvements' into next
- Clean up reset_cpu()
- Assorted arm cp15 cleanups
- Assorted cleanups throughout the tree from Simon
- TPM1 / TPM2 cleanups
Diffstat (limited to 'lib/tpm-common.c')
-rw-r--r-- | lib/tpm-common.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/tpm-common.c b/lib/tpm-common.c index e4af87f76aa..4277846fdd0 100644 --- a/lib/tpm-common.c +++ b/lib/tpm-common.c @@ -166,6 +166,7 @@ u32 tpm_sendrecv_command(struct udevice *dev, const void *command, u8 response_buffer[COMMAND_BUFFER_SIZE]; size_t response_length; int i; + uint size; if (response) { response_length = *size_ptr; @@ -174,8 +175,13 @@ u32 tpm_sendrecv_command(struct udevice *dev, const void *command, response_length = sizeof(response_buffer); } - err = tpm_xfer(dev, command, tpm_command_size(command), - response, &response_length); + size = tpm_command_size(command); + log_debug("TPM request [size:%d]: ", size); + for (i = 0; i < size; i++) + log_debug("%02x ", ((u8 *)command)[i]); + log_debug("\n"); + + err = tpm_xfer(dev, command, size, response, &response_length); if (err < 0) return err; |