xhci: really enqueue zero length TRBs.
authorAlban Browaeys <alban.browaeys@gmail.com>
Tue, 16 Aug 2016 07:18:04 +0000 (10:18 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 16 Aug 2016 07:42:47 +0000 (09:42 +0200)
commit0d2daaded82565f807a4435d678343f437b8b848
tree3c3e62014f24134fe5a58ac9143bc6706f7641de
parent33be126510974e2eb9679f1ca9bca4f67ee4c4c7
xhci: really enqueue zero length TRBs.

Enqueue the first TRB even if full_len is zero.
Without this "adb install <apk>" freezes the system.

Signed-off-by: Alban Browaeys <alban.browaeys@gmail.com>
Fixes: 86065c2719a5 ("xhci: don't rely on precalculated value of needed trbs in the enqueue loop")
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