]> www.infradead.org Git - users/jedix/linux-maple.git/commit
usb: xhci: Add support for URB_ZERO_PACKET to bulk/sg transfers
authorReyad Attiyat <reyad.attiyat@gmail.com>
Thu, 6 Aug 2015 16:23:58 +0000 (19:23 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 Oct 2015 21:43:20 +0000 (14:43 -0700)
commit4e34c36a797dc4ca1e0b9b97f668628801dd882b
tree606eb945da71449ad54bd24ef0668c665d1ead85
parentbc1a2e4e22baf5f6eeada5be042c208b1147fc1b
usb: xhci: Add support for URB_ZERO_PACKET to bulk/sg transfers

commit 4758dcd19a7d9ba9610b38fecb93f65f56f86346 upstream.

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 <reyad.attiyat@gmail.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Cc: Oliver Neukum <oneukum@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-ring.c
drivers/usb/host/xhci.c