]> git.karo-electronics.de Git - linux-beck.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>
Sat, 8 Aug 2015 22:15:49 +0000 (15:15 -0700)
commit4758dcd19a7d9ba9610b38fecb93f65f56f86346
tree54b9c2793c08662ef5a87be26ca07d036771cf2d
parent6c05cb145d6716f00d452aeb27916efb6d190cca
usb: xhci: Add support for URB_ZERO_PACKET to bulk/sg transfers

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-ring.c
drivers/usb/host/xhci.c