]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
staging: gpib: Return -EINTR on device clear
authorDave Penkler <dpenkler@gmail.com>
Sun, 28 Sep 2025 11:33:59 +0000 (13:33 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 13 Oct 2025 08:54:44 +0000 (10:54 +0200)
commitaaf2af1ed147ef49be65afb541a67255e9f60d15
tree892fd8b559c7c2a6f0cbdbedc52bb85564b75a32
parent92a2b74a6b5a5d9b076cd9aa75e63c6461cbd073
staging: gpib: Return -EINTR on device clear

When the ATN (Attention) line is asserted during a read we get a
NIUSB_ATN_STATE_ERROR during a read. For the controller to send a
device clear it asserts ATN. Normally this is an error but in the case
of a device clear it should be regarded as an interrupt.

Return -EINTR when the Device Clear Active State (DCAS) is entered
else signal an error with dev_dbg with status instead of just dev_err.

Signed-off-by: Dave Penkler <dpenkler@gmail.com>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/gpib/ni_usb/ni_usb_gpib.c