diff options
author | Guido Kiener <guido@kiener-muenchen.de> | 2018-09-12 10:51:04 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-09-20 13:04:02 +0200 |
commit | cbe743f1333b23040d1312afd58224dbd58fcc25 (patch) | |
tree | e38a1e08ba740125b7191e14b6fff349a7e9bece /fs/fs-writeback.c | |
parent | dfee02ac4bce6374c9769fe31f20794309341fa0 (diff) | |
download | linux-stable-cbe743f1333b23040d1312afd58224dbd58fcc25.tar.gz linux-stable-cbe743f1333b23040d1312afd58224dbd58fcc25.tar.bz2 linux-stable-cbe743f1333b23040d1312afd58224dbd58fcc25.zip |
usb: usbtmc: Fix ioctl USBTMC_IOCTL_ABORT_BULK_IN
Add parameter 'tag' to function usbtmc_ioctl_abort_bulk_in_tag()
for future versions.
Remove calculation of max_size (=wMaxPacketSize) and wrong
condition (actual == max_size) in while loop. An abort operation
should always flush the complete Bulk-IN until a short packet is
received.
Return error code ENOMSG when transfer (specified by given tag)
is not in progress and device returns code
USBTMC_STATUS_TRANSFER_NOT_IN_PROGRESS.
Use USBTMC_BUFSIZE (4k) instead of USBTMC_SIZE_IOBUFFER (2k).
Using USBTMC_SIZE_IOBUFFER is deprecated.
Use common macro USB_CTRL_GET_TIMEOUT instead of USBTMC_TIMEOUT.
Check only bit 0 (field bmAbortBulkIn) of the
CHECK_ABORT_BULK_IN_STATUS response, since other bits are reserved
and can change in future versions.
Signed-off-by: Guido Kiener <guido.kiener@rohde-schwarz.com>
Reviewed-by: Steve Bayless <steve_bayless@keysight.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/fs-writeback.c')
0 files changed, 0 insertions, 0 deletions