> On Mon, 16 Feb 2004 [EMAIL PROTECTED] wrote:
>
>> it does not work, this message must have some relation with the
>> problem usb 3-2: control timeout on ep0out
>
> I'm sorry, I made a stupid mistake in that patch. This is the corrected
> version -- almost the same with just one change.
>
> 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 Tue Feb 17 10:59:38 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,8 @@
> 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, 256);
> if (err < 0)
> goto errout;
>
good news
http://virtual.shia.ws:8000/~informatica/otros/lastpatchdmesg.txt
is working!!!!!!!!!!!!!!!
-----------------------------------------
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