On Mon, 18 Mar 2002 01:14:44 +0100 Georg Acher <[EMAIL PROTECTED]> wrote:
> On Sun, Mar 17, 2002 at 11:51:35PM +0000, Robin Cull wrote: > > > 1) What does -12 mean when it is returned in purb->status? > > According to /usr/include/asm/errno.h, -12 is ENOMEM, out of memory. > Cool... I mentioned to David, I'm a little ashamed I didn't work this one out myself. My excuse, its late on Sunday night!! > > > 3) Have I got the syntax of the call right in the first place? I am > > unsure what goes in purb->setup_packet, purb->transfer_buffer and > > purb->transfer_buffer_length. > > setup_packet contains exactly 8 Byte, the length is implicitly given by > the control transfer. > > transfer_buffer contains any additional data to write (or to read, > depends on the setup command). > > transfer_buffer_length contains the length for the extra data (may be > 0). > > So your code sends the setupdata twice, but why that should give -ENOMEM > is not very clear... Ok, that's clear now. Excitingly enough, having just made the changes I outlined in my reply to David's mail my calls are now returning -EPIPE. Maybe I'm sending these control packets a little too fast. Some more investigation required... Well that's progress at least! A change in behaviour :) Robin > -- > Georg Acher, [EMAIL PROTECTED] > http://www.in.tum.de/~acher/ > "Oh no, not again !" The bowl of petunias > > _______________________________________________ > [EMAIL PROTECTED] > To unsubscribe, use the last form field at: > https://lists.sourceforge.net/lists/listinfo/linux-usb-devel > _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
