summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMary Ruthven <mruthven@chromium.org>2021-01-11 11:27:12 -0800
committerCommit Bot <commit-bot@chromium.org>2021-01-11 21:55:20 +0000
commitec643f0d99397eafa09ab39b2d7dd6b968bd70d8 (patch)
tree76109b01c5760134d13384678b5ce126e29fba8c /test
parent17baff2bd51e5b14fa9992f4cddca96742a7dea8 (diff)
downloadchrome-ec-ec643f0d99397eafa09ab39b2d7dd6b968bd70d8.tar.gz
coil: cleanup commentsstabilize-rust-13720.B-cr50_stab
BUG=b:175244613 TEST=make buildall -j Change-Id: Icbd143b072fdd5df3b67d7e5a09ee6c01a77f6b9 Signed-off-by: Mary Ruthven <mruthven@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2622889 Reviewed-by: Namyoon Woo <namyoon@chromium.org>
Diffstat (limited to 'test')
-rw-r--r--test/tpm_test/ftdi_spi_tpm.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/test/tpm_test/ftdi_spi_tpm.c b/test/tpm_test/ftdi_spi_tpm.c
index ebec39b766..22e287af5e 100644
--- a/test/tpm_test/ftdi_spi_tpm.c
+++ b/test/tpm_test/ftdi_spi_tpm.c
@@ -99,7 +99,7 @@ static void StartTransaction(int read_write, size_t bytes, unsigned addr)
char *transfer_data;
/*
- * give it 10 ms. TODO(vbendeb): remove this once cr50 SPS TPM driver
+ * give it 10 ms. TODO(vbendeb): remove this once cr50 SPP TPM driver
* performance is fixed.
*/
usleep(10000);
@@ -124,12 +124,13 @@ static void StartTransaction(int read_write, size_t bytes, unsigned addr)
* control (Section "6.4.5 Flow Control" of the TCG issued "TPM
* Profile (PTP) Specification Revision 00.43).
*
- * The slave (TPM device) expects each transaction to start with a 4
- * byte header trasmitted by master. If the slave needs to stall the
- * transaction, it sets the MOSI bit to 0 during the last clock of the
- * 4 byte header. In this case the master is supposed to start polling
- * the line, byte at time, until the last bit in the received byte
- * (transferred during the last clock of the byte) is set to 1.
+ * The peripheral (TPM device) expects each transaction to start with a
+ * 4 byte header trasmitted by controller. If the peripheral needs to
+ * stall the transaction, it sets the MOSI bit to 0 during the last
+ * clock of the 4 byte header. In this case the controller is supposed
+ * to start polling the line, byte at time, until the last bit in the
+ * received byte (transferred during the last clock of the byte) is set
+ * to 1.
*/
flow_c = transfer_data[3];
free(transfer_data);