Hi,

>> In the udc driver, i can't assign a single ep0 descriptor to both
>> ep0_in_desc and ep0_out_desc. i think i should skip ep0_out_desc. Bear
>> in mind that i only define 3 endpoints in udc driver: ep0, ep1 bulk
>> in, ep1 bulk out. Will it cause any problem to gadget driver?
>
> There is no such thing as an ep0 descriptor.
>
> Alan Stern

When ep1 receives CBW data, the isr routine is called. Then in isr, to
get the usb_request:

usb_request * req;
req = list_entry(dev->ep[2].queue.next, struct kagen2_request, queue);

however, the list_empty(&dev->ep[2].queue) is true. Where is the
appropriate place to add list entry?

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

Reply via email to