On Thu, 24 Oct 2002, David Brownell wrote:

> --- ./drivers/usb-dist/misc/usbtest.c Fri Oct 18 21:45:00 2002
> +++ ./drivers/usb/misc/usbtest.c      Sun Oct 20 22:51:02 2002
> @@ -450,5 +450,8 @@
>               int     expected = udev->actconfig->bConfigurationValue;
>  
> -             /* [9.4.2] get_configuration always works */
> +             /* [9.4.2] get_configuration always works
> +              * ... although some cheap devices (like one TI Hub I've got)
> +              * won't return config descriptors except before set_config.
> +              */
>               retval = usb_control_msg (udev, usb_rcvctrlpipe (udev, 0),
>                               USB_REQ_GET_CONFIGURATION, USB_RECIP_DEVICE,

Sorry, had it fixed some days ago but forgot to send the patch...
Well, this is certainly not the crucial part of this patch and I'm not 
sure about what your TI hub is doing there - but I had some good 
experience with GetConfiguration there after changing to DIR_IN ;-)

Martin

-----------------

--- v2.5.42-md/drivers/usb/misc/usbtest.c.p4    Thu Oct 17 13:38:52 2002
+++ v2.5.42-md/drivers/usb/misc/usbtest.c       Thu Oct 17 13:55:02 2002
@@ -451,7 +451,7 @@
 
                /* [9.4.2] get_configuration always works */
                retval = usb_control_msg (udev, usb_rcvctrlpipe (udev, 0),
-                               USB_REQ_GET_CONFIGURATION, USB_RECIP_DEVICE,
+                               USB_REQ_GET_CONFIGURATION, USB_DIR_IN|USB_RECIP_DEVICE,
                                0, 0, dev->buf, 1, HZ * USB_CTRL_GET_TIMEOUT);
                if (retval != 1 || dev->buf [0] != expected) {
                        dbg ("%s get config --> %d (%d)", dev->id, retval,





-------------------------------------------------------
This SF.net email is sponsored by: ApacheCon, November 18-21 in
Las Vegas (supported by COMDEX), the only Apache event to be
fully supported by the ASF. http://www.apachecon.com
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to