diff options
author | Mark Rawling <mwr@google.com> | 2021-10-07 11:22:56 -0700 |
---|---|---|
committer | Andrew Evans <andrewevans@google.com> | 2022-04-19 10:16:03 -0700 |
commit | 5ac639113289534a9bcbad01180d081a9dd2e6fb (patch) | |
tree | d5ffe9ddf0bf560f9fe846b38881ced5080743f9 | |
parent | 5fccc957a17f5d0f547ecb81c70154f23f244f77 (diff) | |
download | nanohub-5ac639113289534a9bcbad01180d081a9dd2e6fb.tar.gz |
Tune nanohub spi timeout for faster reads
The timeout value of 520 is chosen to work well with DMA, both reads and
writes. In particular, it optimises this aspect of read performance and
improves the current peak read bandwidth from 290kB/s to 350kB/s.
See go/rh-nanohub-mcu-architecture
Bug: 169772504
Test: with logic analyser under load and no-load conditions
Change-Id: I7a6ca7d5ae71515f922028c1074b2f4074b61d9f
-rw-r--r-- | spi.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -412,7 +412,7 @@ void nanohub_spi_comms_init(struct nanohub_spi_data *spi_data) sizeof(struct nanohub_packet_crc); comms->seq = 1; - comms->timeout_write = 760; + comms->timeout_write = 520; comms->timeout_ack = 272; comms->timeout_reply = 512; comms->open = nanohub_spi_open; |