linux/drivers/staging/gpib
Dave Penkler 7de6d6d52e staging: gpib: Fix sending clear and trigger events
commit 92a2b74a6b upstream.

This driver was not sending device clear or trigger events when the
board entered the DCAS or DTAS state respectively in device mode.

DCAS is the Device Clear Active State which is entered on receiving a
selective device clear message (SDC) or universal device clear message
(DCL) from the controller in charge.

DTAS is the Device Trigger Active State which is entered on receiving
a group execute trigger (GET) message from the controller.

In order for an application, implementing a particular device, to
detect when one of these states is entered the driver needs to send
the appropriate event.

Send the appropriate gpib_event when DCAS or DTAS is set in the
reported status word. This sets the DCAS or DTAS bits in the board's
status word which can be monitored by the application.

Fixes: 4e127de14f ("staging: gpib: Add National Instruments USB GPIB driver")
Cc: stable <stable@kernel.org>
Tested-by: Dave Penkler <dpenkler@gmail.com>
Signed-off-by: Dave Penkler <dpenkler@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2025-10-29 14:10:31 +01:00
..
agilent_82350b staging: gpib: Fix no EOI on 1 and 2 byte writes 2025-10-29 14:10:31 +01:00
agilent_82357a treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
cb7210 staging: gpib: Fix error handling paths in cb_gpib_probe() 2025-07-09 13:11:49 +02:00
cec staging: gpib: cec: Fix inconsistent indentation in cec_pci_attach() 2025-07-09 13:11:24 +02:00
common Staging changes for 6.17-rc1 2025-07-29 10:03:10 -07:00
eastwood staging: gpib: Add return value to request_control 2025-04-18 16:49:00 +02:00
fmh_gpib staging: gpib: Fix device reference leak in fmh_gpib driver 2025-10-29 14:10:31 +01:00
gpio staging: gpib: fix typo 2025-07-24 11:28:37 +02:00
hp_82335 staging: gpib: Add return value to request_control 2025-04-18 16:49:00 +02:00
hp_82341 staging: gpib: hp_82341: Replace manual comparison with min/max macro 2025-06-19 17:33:03 +02:00
include staging: gpib: Add local include file for commands 2025-06-19 17:32:32 +02:00
ines staging: gpib: Avoid unused variable warning 2025-05-21 13:44:46 +02:00
lpvo_usb_gpib staging: gpib: lpvo_usb_gpib: Remove unreachable return statement 2025-07-09 13:11:35 +02:00
nec7210 staging: gpib: Add return value to request_control 2025-04-18 16:49:00 +02:00
ni_usb staging: gpib: Fix sending clear and trigger events 2025-10-29 14:10:31 +01:00
pc2 staging: gpib: Add return value to request_control 2025-04-18 16:49:00 +02:00
tms9914 staging: gpib: Add return value to request_control 2025-04-18 16:49:00 +02:00
tnt4882 staging: gpib: Add return value to request_control 2025-04-18 16:49:00 +02:00
uapi staging: gpib: Add bit and byte padding to ioctl structs 2025-06-19 17:32:32 +02:00
Kconfig staging: gpib: Remove dependencies on !X86_PAE 2025-02-19 16:47:25 +01:00
Makefile staging: gpib: Replace custom debug with dev_dbg 2024-11-07 09:27:34 +01:00
TODO staging: gpib: Update TODO 2025-06-19 17:31:52 +02:00