mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 20:48:49 +08:00
ce21bfe603
OTG3 and EH Compliance Plan 1.0 talks about Super Speed OTG Verification system (SS-OVS) which consists of an excersizer and analyzer. USB Compliance Suite from Lecroy or Ellisys can act as such SS-OVS for Link Layer Validation (LVS). Some modifications are needed for an embedded Linux USB host to pass all these tests. Most of these tests require just Link to be in U0. They do not work with default Linux USB stack since, default stack does port reset and then starts sending setup packet, which is not expected by Link Layer Validation (LVS) device of Lecroy Compliance Suit. Then, There are many Link Layer Tests which need host to generate specific traffic. This patch supports specific traffic generation cases. As of now all the host Lecroy Link Layer-USBIF tests (except TD7.26) passes with this patch for single run using Lecroy USB Compliance Suite Version 1.98 Build 239 and Lecroy USB Protocol Analyzer version 4.80 Build 1603. Therefore patch seems to be a good candidate for inclusion. Further modification can be done on top of it. lvstest driver will not bind to any device by default. It can bind manually to a super speed USB host controller root hub. Therefore, regular hub driver must be unbound before this driver is bound. For example, if 2-0:1.0 is the xhci root hub, then execute following to unbind hub driver. echo 2-0:1.0 > /sys/bus/usb/drivers/hub/unbind Then write Linux Foundation's vendor ID which is used by root hubs and SS root hub's device ID into new_id file. Writing IDs into new_id file will also bind the lvs driver with any available SS root hub interfaces. echo "1D6B 3" > /sys/bus/usb/drivers/lvs/new_id Now connect LVS device with root hub port. Test case specific traffic can be generated as follows whenever needed: 1. To issue "Get Device descriptor" command for TD.7.06: echo > /sys/bus/usb/devices/2-0\:1.0/get_dev_desc 2. To set U1 timeout to 127 for TD.7.18 echo 127 > /sys/bus/usb/devices/2-0\:1.0/u1_timeout 3. To set U2 timeout to 0 for TD.7.18 echo 0 > /sys/bus/usb/devices/2-0\:1.0/u2_timeout 4. To issue "Hot Reset" for TD.7.29 echo > /sys/bus/usb/devices/2-0\:1.0/hot_reset 5. To issue "U3 Entry" for TD.7.35 echo > /sys/bus/usb/devices/2-0\:1.0/u3_entry 6. To issue "U3 Exit" for TD.7.36 echo > /sys/bus/usb/devices/2-0\:1.0/u3_exit Signed-off-by: Pratyush Anand <pratyush.anand@st.com> Acked-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
31 lines
1.1 KiB
Makefile
31 lines
1.1 KiB
Makefile
#
|
|
# Makefile for the rest of the USB drivers
|
|
# (the ones that don't fit into any other categories)
|
|
#
|
|
obj-$(CONFIG_USB_ADUTUX) += adutux.o
|
|
obj-$(CONFIG_USB_APPLEDISPLAY) += appledisplay.o
|
|
obj-$(CONFIG_USB_CYPRESS_CY7C63) += cypress_cy7c63.o
|
|
obj-$(CONFIG_USB_CYTHERM) += cytherm.o
|
|
obj-$(CONFIG_USB_EMI26) += emi26.o
|
|
obj-$(CONFIG_USB_EMI62) += emi62.o
|
|
obj-$(CONFIG_USB_EZUSB_FX2) += ezusb.o
|
|
obj-$(CONFIG_USB_FTDI_ELAN) += ftdi-elan.o
|
|
obj-$(CONFIG_USB_IDMOUSE) += idmouse.o
|
|
obj-$(CONFIG_USB_IOWARRIOR) += iowarrior.o
|
|
obj-$(CONFIG_USB_ISIGHTFW) += isight_firmware.o
|
|
obj-$(CONFIG_USB_LCD) += usblcd.o
|
|
obj-$(CONFIG_USB_LD) += ldusb.o
|
|
obj-$(CONFIG_USB_LED) += usbled.o
|
|
obj-$(CONFIG_USB_LEGOTOWER) += legousbtower.o
|
|
obj-$(CONFIG_USB_RIO500) += rio500.o
|
|
obj-$(CONFIG_USB_TEST) += usbtest.o
|
|
obj-$(CONFIG_USB_EHSET_TEST_FIXTURE) += ehset.o
|
|
obj-$(CONFIG_USB_TRANCEVIBRATOR) += trancevibrator.o
|
|
obj-$(CONFIG_USB_USS720) += uss720.o
|
|
obj-$(CONFIG_USB_SEVSEG) += usbsevseg.o
|
|
obj-$(CONFIG_USB_YUREX) += yurex.o
|
|
obj-$(CONFIG_USB_HSIC_USB3503) += usb3503.o
|
|
|
|
obj-$(CONFIG_USB_SISUSBVGA) += sisusbvga/
|
|
obj-$(CONFIG_USB_LINK_LAYER_TEST) += lvstest.o
|