David --

I've been using the USB gadget code to develop a driver
for a NetChip 2280 device that runs linux.  It is great--
thanks so much.

In running the USBCV Chapter 9 compliance test (usb.org)
and found that the net2280.c file has a bug that causes
it to fail the HaltEndpointTest.

This test uses the SET_FEATURE and CLEAR_FEATURE requests
to do ENDPOINT_HALT.  However, the ENDPOINT_HALT selector is
in the wValue field, not in wIndex as the net2280.c code
assumes.

The attached tiny patch fixes this.  It applies to the net2280.c
in 2.5.70, but was actually generated from a version from
a month or so ago.

Thanks,
-- Al

Attachment: net2280_c_set_clear_halt.patch
Description: net2280_c_set_clear_halt.patch

Reply via email to