]> git.baikalelectronics.ru Git - kernel.git/commit
staging: comedi: adl_pci9118: handle hardware errors in interrupt handler
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 9 Sep 2014 20:05:32 +0000 (13:05 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 11 Sep 2014 21:34:24 +0000 (14:34 -0700)
commit56184bc4e644b1e9dfc2b1a0bcbb3db740ca5cde
tree5bdac87567cc124c7a24e9b701bc6661468e0e89
parenta1ec51b0595b4b4c65ff74eb1436ba29348e0c9a
staging: comedi: adl_pci9118: handle hardware errors in interrupt handler

Hardware errors will now always terminate an async command. For aesthetics,
absorb pci9118_decode_error_status() into the interrupt handler and use
the register map defines to remove the "magic" numbers. Refactor the code
to set the appropriate comedi event bits and handle the event.

Remove the unnecessary 'ai_maskerr' and 'ai_maskharderr' members from the
private data.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/adl_pci9118.c