commit | c60690ba852723ab55ef6eb1da99b00d4501fec0 | [log] [tgz] |
---|---|---|
author | Vadim Bendebury <[email protected]> | Mon Aug 24 19:17:32 2015 -0700 |
committer | ChromeOS Commit Bot <[email protected]> | Wed Aug 26 02:10:42 2015 +0000 |
tree | 62498c721e182167fce86404a38149f6c9c44030 | |
parent | b21ea123afb354647305411a51d318067544606c [diff] |
trunks: ftdi do not send more than 64 bytes The SPI FTDI driver code considered the burst_count field to be a constant (it in fact is changing based on TPM state), and also did not split messages longer than 64 bytes into smaller chunks. This patch fixes both of the problems. BUG=chrome-os-partner:43025 TEST=verified that trunksd initializes the SPI FTDI based TPM properly Change-Id: I61f164a419bc4516d40d04ab2a05b82c7b6a08eb Signed-off-by: Vadim Bendebury <[email protected]> Reviewed-on: https://chromium-review.googlesource.com/295552 Reviewed-by: Bill Richardson <[email protected]>