usb: dwc3: gadget: fix ISOC TRB type on unaligned transfers
authorFelipe Balbi <felipe.balbi@linux.intel.com>
Wed, 1 Aug 2018 06:37:34 +0000 (09:37 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 1 Dec 2018 08:42:49 +0000 (09:42 +0100)
commit47631d837acccf5532a32b47943621ce62a3a477
treefcee634bbc2387ef6a2edf00e9bcb39d9141d4f3
parent427d4e4c27442ed2329a9672f65af49cd5a56389
usb: dwc3: gadget: fix ISOC TRB type on unaligned transfers

commit 2fc6d4be35fb1e262f209758e25bfe2b7a113a7f upstream.

When chaining ISOC TRBs together, only the first ISOC TRB should be of
type ISOC_FIRST, all others should be of type ISOC. This patch fixes
that.

Fixes: c6267a51639b ("usb: dwc3: gadget: align transfers to wMaxPacketSize")
Cc: <stable@vger.kernel.org> # v4.11+
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/gadget.c