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:37:24 +0000 (09:37 +0100)
commit47cb27191f6cac951bf2bfd00cceff264cfc191f
tree5e92ee159af8a64deacfc4ad6977e0af0aaef59b
parent269c01eb49ed0643a2ed2161fa1d46749cef30b1
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