]> asedeno.scripts.mit.edu Git - linux.git/commit
usb: usbtmc: Add ioctl for termination character
authorGuido Kiener <guido@kiener-muenchen.de>
Wed, 18 Jul 2018 08:45:39 +0000 (10:45 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 21 Jul 2018 06:22:15 +0000 (08:22 +0200)
commit12dcaeb77e67c1162a2604f6b589266baec2d1ef
tree8e705a16b689c9fa2b73a6c1df4d7bdc562bcbc9
parentfbd83971f9429849dd3a105b663822d15b7b992b
usb: usbtmc: Add ioctl for termination character

add USBTMC_IOCTL_CONFIG_TERMCHAR to control TermChar handling
for next read(). Controls field 'TermChar' and Bit 1 of field
'bmTransferAttributes' of REQUEST_DEV_DEP_MSG_IN BULK-OUT header.

Allows enabling/disabling of terminating a read on reception of
term_char individually for each read request.

Reviewed-by: Steve Bayless <steve_bayless@keysight.com>
Tested-by: Dave Penkler <dpenkler@gmail.com>
Signed-off-by: Dave Penkler <dpenkler@gmail.com>
Signed-off-by: Guido Kiener <guido.kiener@rohde-schwarz.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/class/usbtmc.c
include/uapi/linux/usb/tmc.h