From: H Hartley Sweeten Date: Tue, 20 Jan 2015 19:06:01 +0000 (-0700) Subject: staging: comedi: das16: use COMEDI_CB_CANCEL_MASK to see if command is running X-Git-Tag: fixes-v4.0-rc1~99^2~234 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a3b2ee1d3ef56d0221fc5b246368dc13cf6b8ba4;p=pandora-kernel.git staging: comedi: das16: use COMEDI_CB_CANCEL_MASK to see if command is running In das16_interrupt(), use COMEDI_CB_CANCEL_MASK to determine if the async command is still running and the dma needs to be re-enabled. This will cause the driver not re-enable the dma if the async buffer overflows (COMEDI_CB_OVERFLOW), a hardware error occurs (COMEDI_CB_ERROR), or the command completes (COMEDI_CB_EOA). Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed