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

2015-07-03 Thread Mathias Nyman
On 02.07.2015 22:00, Reyad Attiyat wrote: > This version of the patch changes last_trb varible name to > last_trb_num and fixes code style. I have also added a td to the urb > td array. This now gets prepared properl,y with prepare_transfer(), > and is handled correctly when transferred and complet

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

2015-07-02 Thread Reyad Attiyat
This version of the patch changes last_trb varible name to last_trb_num and fixes code style. I have also added a td to the urb td array. This now gets prepared properl,y with prepare_transfer(), and is handled correctly when transferred and completed. It only calls the urb completion callback once

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

2015-07-02 Thread Reyad Attiyat
This commit 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 | 66 ++-- drivers/usb/host/xhci