USB: usbtmc: usbtmc_read sends multiple TMC header based on rigol_quirk
authorAlexandre Peixoto Ferreira <alexandref75@gmail.com>
Tue, 30 Apr 2013 05:51:53 +0000 (00:51 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 May 2013 00:50:51 +0000 (17:50 -0700)
commitd2ddce37a7f5992e256ba0d893f3ad5e2af96b21
tree3ad4f2285fc2c7666a8c5b68fa48648572cd1ea6
parentc2e314835af0e09652ef4571eb5e481757ebb90f
USB: usbtmc: usbtmc_read sends multiple TMC header based on rigol_quirk

These patches implement a modification of the USBTMC
protocol to allow operation with Rigol equipment. The usbtmc_read function is
modified so if the quirk is active, the TMC header is sent with the size of
the data as the whole size of the request. If the quirk is inactive, the TMC
request is sent once per bulk transfer and with size limited to the bulk
transfer size. In the case of the quirk, only the first response contains the
TMC header and the others are just data.

Signed-off-by: Alexandre Peixoto Ferreira <alexandref75@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/class/usbtmc.c
This page took 0.024411 seconds and 5 git commands to generate.