Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 351a7bff authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman
Browse files

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: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: default avatarIan Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 365dae93
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;
}