> Since none of the earlier patches worked, try this one.  I expect it
> will  get farther than the others did, even if it doesn't work totally.
>
> Even on your working system, the dmesg lines that say:
>
>       usb.c: error getting string descriptor 0 (error=-75)
>
> indicate that the mouse doesn't work perfectly.
>
> Alan Stern
>
>
> ===== message.c 1.67 vs edited =====
> --- 1.67/drivers/usb/core/message.c   Fri Jan 30 22:02:33 2004
> +++ edited/drivers/usb/core/message.c Mon Feb 16 16:57:01 2004
> @@ -1184,7 +1184,7 @@
>  int usb_string(struct usb_device *dev, int index, char *buf, size_t
> size) {
>       unsigned char *tbuf;
> -     int err, len;
> +     int err;
>       unsigned int u, idx;
>
>       if (size <= 0 || !buf || !index)
> @@ -1196,7 +1196,7 @@
>
>       /* get langid for strings if it's not yet known */
>       if (!dev->have_langid) {
> -             err = usb_get_string(dev, 0, 0, tbuf, 4);
> +             err = usb_get_string(dev, 0, 0, tbuf, dev->epmaxpacketin[0]);
>               if (err < 0) {
>                       err("error getting string descriptor 0 (error=%d)", err);
>                       goto errout;
> @@ -1212,17 +1212,9 @@
>                               dev->devnum, dev->string_langid);
>               }
>       }
> -
> -     /*
> -      * ask for the length of the string
> -      */
> -
> -     err = usb_get_string(dev, dev->string_langid, index, tbuf, 2);
> -     if(err<2)
> -             goto errout;
> -     len=tbuf[0];
>
> -     err = usb_get_string(dev, dev->string_langid, index, tbuf, len); +      err
> = usb_get_string(dev, dev->string_langid, index, tbuf,
> +                     sizeof(tbuf));
>       if (err < 0)
>               goto errout;
>
http://virtual.shia.ws:8000/~informatica/otros/dmesg-patch4.txt

it does not work, this message must have some relation with the problem
usb 3-2: control timeout on ep0out



-----------------------------------------
IRC.CL la red de IRC m�s grande de Chile.
Visita http://www.irc.cl/      




-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to