File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -193,17 +193,14 @@ mode supports both coherent and stream based DMA mappings.
193
193
The following logic is used to determine the type of I/O to be used on
194
194
a per "spi_transfer" basis::
195
195
196
- if !enable_dma then
197
- always use PIO transfers
196
+ if spi_message.len > 65536 then
197
+ if spi_message.is_dma_mapped or rx_dma_buf != 0 or tx_dma_buf != 0 then
198
+ reject premapped transfers
198
199
199
- if spi_message.len > 8191 then
200
200
print "rate limited" warning
201
201
use PIO transfers
202
202
203
- if spi_message.is_dma_mapped and rx_dma_buf != 0 and tx_dma_buf != 0 then
204
- use coherent DMA mode
205
-
206
- if rx_buf and tx_buf are aligned on 8 byte boundary then
203
+ if enable_dma and the size is in the range [DMA burst size..65536] then
207
204
use streaming DMA mode
208
205
209
206
otherwise
You can’t perform that action at this time.
0 commit comments