Skip to contentSkip to conversation

usb: usbtmc: Optimize read/write and add ioctls for auto_abort

PATCH New Greg Kroah-Hartman 1 participant 1 message May 18, 2018 USB

lore
Share & tools
lore

Greg Kroah-Hartman

author maintainer
#0 lore raw

PATCH 8/12 usb: usbtmc: Optimize read/write and add ioctls for auto_abort

Quoted 6 lines · Guido Kiener

- Optimize read/write functions for better bandwidth and fixes reading of long transfers

- add ioctl USBTMC_IOCTL_AUTO_ABORT to configure auto_abort for each specific file handle.

Quoted 10 lines

- add ioctl USBTMC_IOCTL_MSG_IN_ATTR that returns the specific bmTransferAttributes field of the last DEV_DEP_MSG_IN Bulk-IN header. This header is received by the read() function. The meaning of the (u8) bitmap bmTransferAttributes is:
Bit 0 = EOM flag is set when the last of a USBTMC message is received.
Bit 1 = is set when the last byte is a termchar (e.g. '\n'). Note that this bit is always zero when the device does not support termchar feature or when termchar detection is not enabled (see ioctl USBTMC_IOCTL_CONFIG_TERMCHAR).

Should be 3 patches.

Again, if you have to list things in a changelog, that's a huge hint it needs to be broken up.

thanks,

greg k-h
---
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html