staging: comedi: addi_apci_2032: only disable triggered interrupts
authorIan Abbott <abbotti@mev.co.uk>
Mon, 3 Dec 2012 18:15:44 +0000 (18:15 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 Jan 2013 22:10:02 +0000 (14:10 -0800)
commitef6543dbad12c1086f3bc3565d8266352521d8a3
tree8d659c7d0914da44e1c8efe6e4c3d590e20b2cc4
parentb652bd83a0528c43e935cb6f2f8df024b7a85c5e
staging: comedi: addi_apci_2032: only disable triggered interrupts

The interrupt handler disables all interrupt sources when a valid
interrupt occurs.  Just disable the triggered interrupt source so we can
still get interrupts for the other interrupt source.

Also add a comment indicating why the triggered interrupt source is
disabled.  The interrupt sources are level-sensitive and indicate
hardware errors that are likely to be persistent, so if we reenabled
them they would just keep triggering repeatedly.

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