diff options
author | Guido Kiener <[email protected]> | 2018-07-18 10:45:34 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2018-07-21 08:22:15 +0200 |
commit | 4f3c8d6eddc272b386464524235440a418ed2029 (patch) | |
tree | 2a6bcbd4f499ec765e710d9c0f8b18366b9181e8 /tools/perf/util/trace-event-scripting.c | |
parent | 04b453c859d3be8f3f992f929bfa2957db184e4b (diff) |
usb: usbtmc: Support Read Status Byte with SRQ per file
Add 'struct usbtmc_file_data' for each file handle to cache last
srq_byte (=Status Byte with SRQ) received by usbtmc_interrupt(..)
usbtmc488_ioctl_read_stb returns cached srq_byte when available for
each file handle to avoid race conditions of concurrent applications.
SRQ now sets EPOLLPRI instead of EPOLLIN since EPOLLIN is now reserved
for asynchronous reads
Tested-by: Dave Penkler <[email protected]>
Reviewed-by: Steve Bayless <[email protected]>
Signed-off-by: Guido Kiener <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions