On Wed, 23 Jan 2013, victor yeo wrote: > In my udc driver, i set the req->length to the number of bytes i > received from HW, which is 31 bytes. Is it necessary to do that? How > to know the gadget driver queued 0-bytes? By > bh->bulk_out_intended_length ? Victor, it sounds like you haven't read include/linux/usb/gadget.h. Reading it carefully would provide the answers to a lot of your questions. 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