diff options
author | Andrew Bresticker <abrestic@chromium.org> | 2014-12-22 14:35:15 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2014-12-24 07:20:03 -0500 |
commit | 76fe5e95fac3c93bdff9102480e5ba823ba656c3 (patch) | |
tree | 7d6ef466527abcf12936e2b1a461cadf8ab3c139 | |
parent | c0e7dc21d33caa31296d1e4af1e99008359f1b64 (diff) |
spi: img-spfi: Increase DMA burst size
A 1-byte burst size is rather inefficient and has been shown to cause
TX issues during testing. Increase the DMA burst size to 4-bytes for
both RX and TX DMA when using the 8-bit FIFO.
Signed-off-by: Andrew Bresticker <abrestic@chromium.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | drivers/spi/spi-img-spfi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/spi/spi-img-spfi.c b/drivers/spi/spi-img-spfi.c index cd14556852bf..aad6683db81b 100644 --- a/drivers/spi/spi-img-spfi.c +++ b/drivers/spi/spi-img-spfi.c | |||
@@ -341,7 +341,7 @@ static int img_spfi_start_dma(struct spi_master *master, | |||
341 | default: | 341 | default: |
342 | rxconf.src_addr = spfi->phys + SPFI_RX_8BIT_VALID_DATA; | 342 | rxconf.src_addr = spfi->phys + SPFI_RX_8BIT_VALID_DATA; |
343 | rxconf.src_addr_width = 1; | 343 | rxconf.src_addr_width = 1; |
344 | rxconf.src_maxburst = 1; | 344 | rxconf.src_maxburst = 4; |
345 | } | 345 | } |
346 | dmaengine_slave_config(spfi->rx_ch, &rxconf); | 346 | dmaengine_slave_config(spfi->rx_ch, &rxconf); |
347 | 347 | ||
@@ -368,7 +368,7 @@ static int img_spfi_start_dma(struct spi_master *master, | |||
368 | default: | 368 | default: |
369 | txconf.dst_addr = spfi->phys + SPFI_TX_8BIT_VALID_DATA; | 369 | txconf.dst_addr = spfi->phys + SPFI_TX_8BIT_VALID_DATA; |
370 | txconf.dst_addr_width = 1; | 370 | txconf.dst_addr_width = 1; |
371 | txconf.dst_maxburst = 1; | 371 | txconf.dst_maxburst = 4; |
372 | break; | 372 | break; |
373 | } | 373 | } |
374 | dmaengine_slave_config(spfi->tx_ch, &txconf); | 374 | dmaengine_slave_config(spfi->tx_ch, &txconf); |