On Fri, 14 May 2004, Thomas Wahrenbruch wrote:
> Hello list,
>
> the kobil_sct driver requires interrupt-out transfers to write the data
> to the device. This works fine with the ochi hcd, but fails with the
> uhci hcd. I attached the output from /var/log/messages.
> usb_submit_urb returns -22 (-EINVAL).
>
> I tested it on a centrino notebook, but it should fail with all PC with
> uhci host controller.
>
> So what must I do to fix the driver?
> (Or is it a bug in the uhci hcd?)
> Why do the ohci and uhci behave different?
>
> Kernel is 2.6.4-52 (SuSE 9.1 dist)
There are a few reasons why the UHCI driver will fail an interrupt
submission with -EINVAL:
urb->transfer_buffer_length < 0
The urb was unlinked before it was completely submitted
Presumably none of these apply in your case. There are other reasons a
submission can fail with -EINVAL, but these apply to all host drivers, not
just UHCI:
urb->hcpriv is non-NULL
urb->complete is NULL
Some non-allowed bits are set in urb->transfer_flags
urb->interval <= 0 or > 255
If you need to find out what's happening, you can add printk() statements
to usb_submit_urb() in drivers/usb/core/urb.c or to uhci_submit_common()
and uhci_urb_enqueue() in drivers/usb/host/uhci-hcd.c.
Alan Stern
-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel