Searched hist:c952a8ba7136505cd1ca01735cc748ddc08c7d2f (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/usb/misc/ |
H A D | usbtest.c | diff 8cf4328569acc37ac5c5b4eb27ae86c3758f627b Fri Dec 13 15:44:17 CST 2013 Sarah Sharp <sarah.a.sharp@linux.intel.com> usbtest: Fix BOS control test for USB 2.01 devices.
Commit c952a8ba7136505cd1ca01735cc748ddc08c7d2f "usb: usbtest: add a test case to support bos for queue control" will cause USB 2.01 and USB 2.10 devices with a BOS descriptor to fail case 15 of the control test.
The Link PM errata (released in 2007, updated in 2011) says:
"The value of the bcdUSB field in the standard USB 2.0 Device Descriptor is used to indicate that the device supports the request to read the BOS Descriptor (i.e. GetDescriptor(BOS)). Devices that support the BOS descriptor must have a bcdUSB value of 0201H or larger."
The current code says that non-SuperSpeed devices *must* return -EPIPE, as this comment shows:
/* sign of this variable means: * -: tested code must return this (negative) error code * +: tested code may return this (negative too) error code */ int expected = 0;
This means the test will fail with USB 2.01 and USB 2.10 devices that provide a BOS descriptor. Change it to only require a stall response if the USB device bcdUSB is less than 2.01.
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com> Acked-by: Huang Rui <ray.huang@amd.com> diff c952a8ba7136505cd1ca01735cc748ddc08c7d2f Mon Nov 04 07:11:53 CST 2013 Huang Rui <ray.huang@amd.com> usb: usbtest: add a test case to support bos for queue control
In Test 10 of usbtest module, it queues multiple control messages and thereby tests control message queuing, protocol stalls, short reads, and fault handling. And this patch add a test case to support queue BOS control request for USB 3.0 SPEC.
Signed-off-by: Huang Rui <ray.huang@amd.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
|