]> git.baikalelectronics.ru Git - kernel.git/commit
staging: comedi: dt2814: Don't wait for conversion in interrupt handler
authorIan Abbott <abbotti@mev.co.uk>
Mon, 1 Mar 2021 16:57:53 +0000 (16:57 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Mar 2021 08:25:31 +0000 (09:25 +0100)
commit2186b53b7948c7a71ffbf6f570c10fbb9637e3a4
tree6c12698d20062426a6eac1ea7ec28882c2f42ef9
parentb4acfa8a6e07dfd680d3d159836616708dd80e5f
staging: comedi: dt2814: Don't wait for conversion in interrupt handler

When the interrupt handler decides the final sample has been acquired,
it turns off the timer enable (ENB) bit in the Command register.  That
triggers another A/D conversion.  The interrupt handler currently waits
for that to finish and then reads the resulting, unwanted sample.  Since
the functions for handling Comedi read instructions and for setting up
asynchronous commands now call `dt2814_ai_clear()` to wait for and
discard any spurious A/D conversion, let's remove that code from the
interrupt handler.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Link: https://lore.kernel.org/r/20210301165757.243065-3-abbotti@mev.co.uk
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/dt2814.c