Re: [PATCH] usb: gadget: dummy_hcd: emulate sending zlp in packet logic

2015-09-14 Thread Igor Kotrasinski
On 09/11/2015 07:20 PM, Alan Stern wrote: > On Fri, 11 Sep 2015, Igor Kotrasinski wrote: > >> currently, when a zlp flag is set and an urb/usb_request >> buffer is filled without a short packet, transfer() leaves >> its status at -EINPROGRESS and does not rescan for short >> packet. >> >> In a scen

Re: [PATCH] usb: gadget: dummy_hcd: emulate sending zlp in packet logic

2015-09-11 Thread Alan Stern
On Fri, 11 Sep 2015, Igor Kotrasinski wrote: > currently, when a zlp flag is set and an urb/usb_request > buffer is filled without a short packet, transfer() leaves > its status at -EINPROGRESS and does not rescan for short > packet. > > In a scenario where ep.maxpacket bytes are copied, > URB_ZE

[PATCH] usb: gadget: dummy_hcd: emulate sending zlp in packet logic

2015-09-11 Thread Igor Kotrasinski
currently, when a zlp flag is set and an urb/usb_request buffer is filled without a short packet, transfer() leaves its status at -EINPROGRESS and does not rescan for short packet. In a scenario where ep.maxpacket bytes are copied, URB_ZERO_PACKET is set, urb buffer is filled and usb_request buffe