OSDN Git Service

staging: comedi: ni_65xx: disable edge detection on initialization
authorIan Abbott <abbotti@mev.co.uk>
Wed, 23 Jul 2014 09:41:21 +0000 (10:41 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 24 Jul 2014 22:01:25 +0000 (15:01 -0700)
When the hardware is being initialized, the edge detection interrupts
are cleared and disabled.  Also disable edge detection for all channels
at this time so they start off in a known state.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/ni_65xx.c

index ddf9135..1b8a397 100644 (file)
@@ -804,6 +804,7 @@ static int ni_65xx_auto_attach(struct comedi_device *dev,
        }
 
        ni_65xx_disable_input_filters(dev);
+       ni_65xx_disable_edge_detection(dev);
 
        return 0;
 }