Implement an ioctl to support the USMTMC-USB488 READ_STATUS_BYTE operation.
authorDave Penkler <dpenkler@gmail.com>
Wed, 27 Jan 2016 18:09:24 +0000 (19:09 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Feb 2016 21:54:06 +0000 (13:54 -0800)
commitdbf3e7f654c0f06a932b8fcafac78de9d0b81d68
treefb6c595d04dc1893afdc164b870d41a9776e257f
parent21619792d1eca7e772ca190ba68588e57f29595b
Implement an ioctl to support the USMTMC-USB488 READ_STATUS_BYTE operation.

Background:
When performing a read on an instrument that is executing a function
that runs longer than the USB timeout the instrument may hang and
require a device reset to recover. The READ_STATUS_BYTE operation
always returns even when the instrument is busy permitting to poll
for the appropriate condition. This capability is referred to in
instrument application notes on synchronizing acquisitions for other
platforms.

Signed-off-by: Dave Penkler <dpenkler@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/class/usbtmc.c
include/uapi/linux/usb/tmc.h