ni_pcidio: Mark buffer for writing when setting up DMA.
authorIan Abbott <abbotti@mev.co.uk>
Mon, 18 Jul 2011 10:30:08 +0000 (11:30 +0100)
committerIan Abbott <abbotti@mev.co.uk>
Mon, 18 Jul 2011 10:30:08 +0000 (11:30 +0100)
commit8736d0249869fe87604c38ca07bc7252d8bbccda
tree91645f439baba4d3ad140fedd2cedfbd8a778a40
parent235b6b00c564871680cee0a615761d9bcf6c5043
ni_pcidio: Mark buffer for writing when setting up DMA.

When setting up the DMA for 'read' streaming acquisition on the DIO
subdevice, mark the whole buffer as writable before starting the DMA.
This prevents a spurious detection of a DMA overwrite of good data
during the first interrupt.

Problem reported by Nico Nell.  Fix suggested by Frank Mori Hess.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
comedi/drivers/ni_pcidio.c