diff options
| author | Ian Abbott <abbotti@mev.co.uk> | 2021-03-01 19:57:52 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-03-10 11:25:31 +0300 |
| commit | 7a3f3a7005cba9cfc1a0d50978f3eb7f3094e02f (patch) | |
| tree | f4c8f5c28f3fdb988ff41f598c29b7a17e604829 /scripts/basic | |
| parent | a0d1a3864cad089eef3e0458d1abc31e9e101751 (diff) | |
| download | linux-7a3f3a7005cba9cfc1a0d50978f3eb7f3094e02f.tar.xz | |
staging: comedi: dt2814: Clear stale AI data before operation
When performing a Comedi read instruction or setting up an asynchronous
command on the AI subdevice, clear any stale data on the A/D registers
by waiting for the Status register's BUSY bit to clear (if set) and then
if the FINISH or ERR bit is set, reading the A/D Data register twice to
clear the stale data.
Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Link: https://lore.kernel.org/r/20210301165757.243065-2-abbotti@mev.co.uk
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/basic')
0 files changed, 0 insertions, 0 deletions
