From: H Hartley Sweeten Date: Tue, 4 Nov 2014 17:55:11 +0000 (-0700) Subject: staging: comedi: addi_apci_3120: don't use timer 2 to count scans X-Git-Tag: omap-for-v3.19/fixes-rc1~73^2~268 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4646364cc8e6346776828155ab817e254194df62;p=pandora-kernel.git staging: comedi: addi_apci_3120: don't use timer 2 to count scans Timer 2 can be used to count the number of scans when the cmd->stop_src is TRIG_COUNT. Unfortunately that timer can also be used by userspace and this breaks the async command. Timer 2 also only works for counting the number of scans when DMA is not used. The number of scans is counted by the core using the private data membmer 'scans_done'. Use that to detect the End-Of-Scan for both DMA and none DMA modes. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed