Re: gadgetfs & 2.6.29: clients always returns EAGAIN

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 1 May 2009, Daiki Ueno wrote:

> Hello,
> 
> I have used gadgetfs to develop USB gadgets and am mostly happy with it.
> 
> However, after I upgraded the kernel from 2.6.26 to 2.6.29, my gadget
> stops working; the client always returns EAGAIN when writing to an
> endpoint the gadget opens.
> 
> To see what's going wrong, I tried the original sample
> http://www.linux-usb.org/gadget/usb.c, and I see the same symptom.

It looks like there's a problem in your program.

  if (usb_bulk_write (handle, 3, data, sizeof(data), -1) < 0)
    {
      perror ("usb_bulk_write");
...

-1 is not a valid timeout value.  Try using something more reasonable,
such as 100.

Alan Stern


--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux