diff options
| author | Dave Penkler <[email protected]> | 2020-12-15 16:56:20 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2020-12-28 15:50:30 +0100 |
| commit | d1d9defdc6d582119d29f5d88f810b72bb1837fa (patch) | |
| tree | f3dce4bbad4c77f09e8d3876602afd8f81171e86 /tools/perf/scripts/python/bin | |
| parent | c9784e23c1020e63d6dba5e10ca8bf3d8b85c19c (diff) | |
USB: usbtmc: Add separate USBTMC_IOCTL_GET_SRQ_STB
This new ioctl only returns the status byte (STB) that was originally
sent by the device due to a service request (SRQ) condition.
This ioctl checks the srq_asserted bit of the associated file
descriptor. If set, the srq_asserted bit is reset and the cached
STB with original SRQ information is returned. Otherwise the ioctl
returns the error code ENOMSG.
This ioctl is useful to support non USBTMC-488 compliant devices.
Time sensitive applications can read the cached STB without incurring
the cost of an urb transaction over the bus.
Tested-by: Jian-Wei Wu <[email protected]>
Reviewed-by: Guido Kiener <[email protected]>
Signed-off-by: Dave Penkler <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions