summaryrefslogtreecommitdiffstats
path: root/drivers/staging/octeon
diff options
context:
space:
mode:
authorIan Abbott2014-11-27 12:37:19 +0100
committerGreg Kroah-Hartman2014-12-03 01:31:20 +0100
commite87f65b238a6c1e76776469d92190f6c46c5817f (patch)
tree0af136911566dd848093c74f0ccd11e344e65556 /drivers/staging/octeon
parentstaging: comedi: adl_pci9118: try and avoid unnecessary DMA restart (diff)
downloadkernel-qcow2-linux-e87f65b238a6c1e76776469d92190f6c46c5817f.tar.gz
kernel-qcow2-linux-e87f65b238a6c1e76776469d92190f6c46c5817f.tar.xz
kernel-qcow2-linux-e87f65b238a6c1e76776469d92190f6c46c5817f.zip
staging: comedi: adl_pci9118: eliminate DMA buffer defragmentation step
The DMA operations used by the driver may have been set up to acquire data from unwanted channels in addition to the wanted channels. Currently, `interrupt_pci9118_ai_dma()` calls `defragment_dma_buffer()` to move all the wanted data to the start of the DMA buffer and then calls `comedi_buf_write_samples()` to copy it all to the comedi async buffer. Those two functions used to be called from `move_block_from_dma()` which was absorbed into `interrupt_pci9118_ai_dma()`. Reinstate `move_block_from_dma()` but rewrite it to copy data directly from the wanted fragments of the DMA buffer to the comedi async buffer without defragmenting the buffer first. Signed-off-by: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/octeon')
0 files changed, 0 insertions, 0 deletions