staging: comedi: ni_pcidio: Grab MITE spinlock while preparing DMA.
authorIan Abbott <abbotti@mev.co.uk>
Mon, 9 Jan 2012 15:47:31 +0000 (15:47 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Feb 2012 18:00:37 +0000 (10:00 -0800)
commite3794b52f56ac20947a2dbdd505e9ad29013c555
treeba20af124a99cdfe60f9e2087e24d2314c0acf5d
parent41add2e84bff0c887949698e01dab28105f11a6b
staging: comedi: ni_pcidio: Grab MITE spinlock while preparing DMA.

When setting up the DMA for 'read' streaming acquisition command, grab
the MITE channel spinlock before preparing and arming the DMA.

Change inspired by ni_ai_setup_MITE_dma() in ni_mio_common.c.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/ni_pcidio.c