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 <vbendeb@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/295552
Reviewed-by: Bill Richardson <wfrichar@chromium.org>
2 files changed