Re: [PATCH v2] usb: xhci: Add support for URB_ZERO_PACKET to bulk/sg transfers

2015-06-30 Thread Mathias Nyman
Hi On 30.06.2015 04:54, Reyad Attiyat wrote: > Hey Mathias, > > The intention is to send an extra endpoint packet of length zero as my > wireless card needs this to function properly. I have skimmed through > the xhci spec and assumed that each td would generate a packet. That > is why I do not

Re: [PATCH v2] usb: xhci: Add support for URB_ZERO_PACKET to bulk/sg transfers

2015-06-30 Thread Mathias Nyman
Hi On 30.06.2015 04:54, Reyad Attiyat wrote: Hey Mathias, The intention is to send an extra endpoint packet of length zero as my wireless card needs this to function properly. I have skimmed through the xhci spec and assumed that each td would generate a packet. That is why I do not chain

Re: [PATCH v2] usb: xhci: Add support for URB_ZERO_PACKET to bulk/sg transfers

2015-06-29 Thread Reyad Attiyat
Hey Mathias, The intention is to send an extra endpoint packet of length zero as my wireless card needs this to function properly. I have skimmed through the xhci spec and assumed that each td would generate a packet. That is why I do not chain the last trb or add a interrupt flag, since I don't

Re: [PATCH v2] usb: xhci: Add support for URB_ZERO_PACKET to bulk/sg transfers

2015-06-29 Thread Mathias Nyman
Hi On 29.06.2015 03:53, Reyad Attiyat wrote: > This commmit checks for the URB_ZERO_PACKET flag and creates an extra > zero-length td if the urb transfer length is a multiple of the endpoint's > max packet length. > > Signed-off-by: Reyad Attiyat > --- Thanks for the patch. Generic idea and

Re: [PATCH v2] usb: xhci: Add support for URB_ZERO_PACKET to bulk/sg transfers

2015-06-29 Thread Mathias Nyman
Hi On 29.06.2015 03:53, Reyad Attiyat wrote: This commmit checks for the URB_ZERO_PACKET flag and creates an extra zero-length td if the urb transfer length is a multiple of the endpoint's max packet length. Signed-off-by: Reyad Attiyat reyad.atti...@gmail.com --- Thanks for the patch.

Re: [PATCH v2] usb: xhci: Add support for URB_ZERO_PACKET to bulk/sg transfers

2015-06-29 Thread Reyad Attiyat
Hey Mathias, The intention is to send an extra endpoint packet of length zero as my wireless card needs this to function properly. I have skimmed through the xhci spec and assumed that each td would generate a packet. That is why I do not chain the last trb or add a interrupt flag, since I don't

[PATCH v2] usb: xhci: Add support for URB_ZERO_PACKET to bulk/sg transfers

2015-06-28 Thread Reyad Attiyat
This commmit checks for the URB_ZERO_PACKET flag and creates an extra zero-length td if the urb transfer length is a multiple of the endpoint's max packet length. Signed-off-by: Reyad Attiyat --- drivers/usb/host/xhci-ring.c | 43 +-- 1 file changed, 33

[PATCH v2] usb: xhci: Add support for URB_ZERO_PACKET to bulk/sg transfers

2015-06-28 Thread Reyad Attiyat
This commmit checks for the URB_ZERO_PACKET flag and creates an extra zero-length td if the urb transfer length is a multiple of the endpoint's max packet length. Signed-off-by: Reyad Attiyat reyad.atti...@gmail.com --- drivers/usb/host/xhci-ring.c | 43