diff options
author | H Hartley Sweeten <hsweeten@visionengravers.com> | 2014-09-18 18:35:40 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-10-20 02:29:24 (GMT) |
commit | 351a7bffbd4a02dd8a46209a4c6582860a72601d (patch) | |
tree | c28121d67f77b5ee734f07be9298914766236b36 | |
parent | 365dae93f72fdb281cf04cc43b93d4e044f3c70d (diff) | |
download | linux-351a7bffbd4a02dd8a46209a4c6582860a72601d.tar.xz |
staging: comedi: rtd520: clear FIFO when canceling async command
Clear the A/D FIFO as part of the analog input (*cancel) to help with
cleaning up the async command.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/comedi/drivers/rtd520.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/comedi/drivers/rtd520.c b/drivers/staging/comedi/drivers/rtd520.c index 7d4cb14..7d04a7e 100644 --- a/drivers/staging/comedi/drivers/rtd520.c +++ b/drivers/staging/comedi/drivers/rtd520.c @@ -1083,6 +1083,7 @@ static int rtd_ai_cancel(struct comedi_device *dev, struct comedi_subdevice *s) devpriv->ai_count = 0; /* stop and don't transfer any more */ status = readw(dev->mmio + LAS0_IT); overrun = readl(dev->mmio + LAS0_OVERRUN) & 0xffff; + writel(0, dev->mmio + LAS0_ADC_FIFO_CLEAR); return 0; } |