> 1) What does -12 mean when it is returned in purb->status?
> 2) Is there a function in the kernel API to resolve a numeric error return
> to a textual description (kinda like perror() in the C library)? 

"-12" on my system == "-ENOMEM" according to <include/asm/errno.h>,
as you'd see if you passed the code to userland, negated it, and
then called perror() ... :)


> 3) Have I got the syntax of the call right in the first place?

No, you're passing the setup data as if it were the data.
There are separate fields in the control URB for setup
data and "real data".

If I were you I'd start by using usb_control_msg(), which is a
synchronous call ... and if you really need async control
messaging, then look at how that function makes control
requests.

- Dave




_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to