0
0
mirror of https://mirrors.bfsu.edu.cn/git/linux.git synced 2024-12-15 15:04:27 +08:00
linux/drivers/usb/misc
Mathias Nyman cc2e60dfa6 usb: usbtest: Add TEST 29, toggle sync, Clear toggle between bulk writes
Clear Feature Endpoint Halt should reset the data toggle even if the
endpoint isn't halted. Host should manage to clear the host side data
toggle to keep in sync with the device.

Test by sending a "3 data packet URB" before and after clearing the halt.
this should create a toggle sequence with two consecutive DATA0 packets.

A successful test sequence looks like this
    ClearFeature(ENDPOINT_HALT) - initial toggle clear
  DATA0 (max packet sized)
  DATA1 (max packet sized)
  DATA0 (zero length packet)
    ClearFeature(ENDPOINT_HALT) - resets toggle
  DATA0 (max packet sized), if clear halt fails then toggle is DATA1
  DATA1 (max packet sized)
  DATA0 (zero length packet)

Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-12-15 20:45:44 +01:00
..
sisusbvga USB: add SPDX identifiers to all remaining Makefiles 2017-11-07 15:53:48 +01:00
adutux.c USB: adutux: remove redundant variable minor 2017-11-07 15:52:29 +01:00
appledisplay.c USB: misc: Remove redundant license text 2017-11-04 11:55:38 +01:00
chaoskey.c USB: misc: Remove redundant license text 2017-11-04 11:55:38 +01:00
cypress_cy7c63.c USB: misc: Remove redundant license text 2017-11-04 11:55:38 +01:00
cytherm.c USB: misc: Remove redundant license text 2017-11-04 11:55:38 +01:00
ehset.c USB: misc: Remove redundant license text 2017-11-04 11:55:38 +01:00
emi26.c USB: misc: Remove redundant license text 2017-11-04 11:55:38 +01:00
emi62.c USB: misc: Remove redundant license text 2017-11-04 11:55:38 +01:00
ezusb.c USB: misc: Remove redundant license text 2017-11-04 11:55:38 +01:00
ftdi-elan.c USB: misc: Remove redundant license text 2017-11-04 11:55:38 +01:00
idmouse.c USB: misc: Remove redundant license text 2017-11-04 11:55:38 +01:00
iowarrior.c USB: add SPDX identifiers to all remaining files in drivers/usb/ 2017-11-04 11:48:02 +01:00
isight_firmware.c USB: misc: Remove redundant license text 2017-11-04 11:55:38 +01:00
Kconfig usb: usb251xb: Add USB2517i specific struct and IDs 2017-11-01 17:14:21 +01:00
ldusb.c USB: misc: Remove redundant license text 2017-11-04 11:55:38 +01:00
legousbtower.c USB: misc: Remove redundant license text 2017-11-04 11:55:38 +01:00
lvstest.c USB: misc: Remove redundant license text 2017-11-04 11:55:38 +01:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
rio500_usb.h USB: misc: Remove redundant license text 2017-11-04 11:55:38 +01:00
rio500.c USB: misc: Remove redundant license text 2017-11-04 11:55:38 +01:00
trancevibrator.c USB: misc: Remove redundant license text 2017-11-04 11:55:38 +01:00
usb251xb.c USB: misc: Remove redundant license text 2017-11-04 11:55:38 +01:00
usb3503.c USB: misc: Remove redundant license text 2017-11-04 11:55:38 +01:00
usb4604.c USB: misc: Remove redundant license text 2017-11-04 11:55:38 +01:00
usb_u132.h USB: misc: Remove redundant license text 2017-11-04 11:55:38 +01:00
usblcd.c USB: add SPDX identifiers to all remaining files in drivers/usb/ 2017-11-04 11:48:02 +01:00
usbsevseg.c USB: misc: Remove redundant license text 2017-11-04 11:55:38 +01:00
usbtest.c usb: usbtest: Add TEST 29, toggle sync, Clear toggle between bulk writes 2017-12-15 20:45:44 +01:00
uss720.c USB: misc: Remove redundant license text 2017-11-04 11:55:38 +01:00
yurex.c USB: misc: Remove redundant license text 2017-11-04 11:55:38 +01:00