On Wed, 2 Jun 2004, sting sting wrote:

> Hello,
> 
> I am running a Linux kernel version 2.4.20 with sl811 host
> controller.
> 
> I am trying to use a higher level usb driver
> which calls usb_submit_urb(urb) ; and it crashes.
> 
> This method is defined in usb.c ;
> it is delegated to the usb_submit_urb of the usb_operations struct of
> the bus of the specified bus;
> 
> It is in this case sl811_submit_urb();
> 
> Now I see in the kernel log that I have there an error; the error is
> Packet size is big for SL811, should < 240
> 
> I had traced the error in sl811.c ; it is originated from:
> 
> if (usb_maxpacket(urb->dev, urb->pipe, usb_pipeout(urb->pipe)) >
> SL811_DATA_LIMIT) {
>               printk(KERN_ERR "Packet size is big for SL811, should < %d!\n",
> SL811_DATA_LIMIT);
>               return -EINVAL;
>       }
> 
> now SL811_DATA_LIMIT is 240; (as defined in sl811.h).
> 
> Any idea why this error appears?
> can I prevent it ?
> 
> I am quite a newbie in this matters.
> 
> I must add that I see also in the kernel log, at boot,
> "Initializing USB Mass Storage driver..."
> 
> Can using a USB mass Storage device cause this problem ?
> 
> regards,
> sting

The maxpacket size is determined by the device you plug in.  Try plugging
your device into a regular PC running Linux and look at
/proc/bus/usb/devices; that will show you the maxpacket values for all the
endpoints.  However, unless your sl811 host controller supports high-speed
USB 2.0, all maxpacket values should be <= 64 except for isochronous
endpoints.  USB mass storage devices don't use isochronous endpoints.

If your host system is big-endian, you may be suffering from a
byte-ordering problem.

Alan Stern



-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
>From Windows to Linux, servers to mobile, InstallShield X is the one
installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to