There appears to be a bug in usb/usb-skeleton.c. At least up through 2.6.14-rc4. The original code generates a read pipe id for the write output pipe.

bill rees


--- usb-skeleton.c      2005-09-26 20:09:39.000000000 -0700
+++ usb-skeleton.mod.c  2005-10-11 14:55:27.815537470 -0700
@@ -272,7 +272,7 @@
               }
               if (!dev->bulk_out_endpointAddr &&
-                   !(endpoint->bEndpointAddress & USB_DIR_OUT) &&
+                   !(endpoint->bEndpointAddress & USB_DIR_IN) &&
                   ((endpoint->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK)
                                       == USB_ENDPOINT_XFER_BULK)) {
                       /* we found a bulk out endpoint */



-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to