If it's not an interrupt or a bulk, what is it?


It _is_ an interrupt endpoint.


usb_bulk_msg() should work just fine for interrupt endpoints and bulk
endpoints.  What are you trying to connect to here?


It should, but it doesn't.  On one system (VIA EDEN with Gentoo
2.6.15) it works fine. On another system (Pentium M, not sure which
chipset, Gentoo 2.6.16) it doesn't work at all. On the Pentium system
it always returns -EINVAL.  Both systems are EHCI.

For this reason I am suggesting a usb_intr_msg() function which is
written as usb_bulk_msg() but with usb_fill_int_urb() instead of
usb_fill_bulk_urb().

Regardless, I have grown fond of my completion variable solution since
it will keep me from having to use kthreads to achieve some of my
goals.

> >No {} needed for 1 line for statements (or if statements).
> >
> >>        printk("\n");
>
I know, sorry, I couldn't help myself.  It hurts my brain and eyes to
see stuff like this... :)


I understand, I had multiple statements in that block earlier and
removed them but never collapsed the {}.

Thanks.


On 5/19/06, Greg KH <[EMAIL PROTECTED]> wrote:
On Fri, May 19, 2006 at 07:58:00PM -0400, Paul Giblock wrote:
> Sorry Greg, but your patch does not work, I tried using usb_bulk_msg()
> in the first place but it returns -22 (-EINVAL) this is because the
> pipe is not an interrupt pipe.

If it's not an interrupt or a bulk, what is it?

> Using usb_bulk_msg() does work on
> another one of my machines, however.
>
> A properly written solution would be a modified version of
> usb_bulk_msg, not just a wrapper.

usb_bulk_msg() should work just fine for interrupt endpoints and bulk
endpoints.  What are you trying to connect to here?

> >No {} needed for 1 line for statements (or if statements).
> >
> >>        printk("\n");
>
> I guess I didn't make myself clear. I'm not looking for syntax advice,
> this is only a rapid prototype. I'm looking for obvious faults that
> may cause deadlock or a kernel panic.

I know, sorry, I couldn't help myself.  It hurts my brain and eyes to
see stuff like this... :)

thanks,

greg k-h



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to