usb: xhci: Add support for URB_ZERO_PACKET to bulk/sg transfers

[ Upstream commit 4758dcd19a ]

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>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
This commit is contained in:
Reyad Attiyat 2015-08-06 19:23:58 +03:00 • committed by Sasha Levin
commit df8a261df5
2 changed files with 57 additions and 14 deletions