usb: dwc3: gadget: Fix PCM1 for ISOC EP with ep->mult less than 3
authorManu Gautam <mgautam@codeaurora.org>
Wed, 6 Dec 2017 07:19:04 +0000 (12:49 +0530)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 11 Dec 2017 10:35:37 +0000 (12:35 +0200)
commitec5bb87e4e2a1d3a35563a7bcfac9febf67aba9d
treeeba2d8dc55581c511fced29619cad2b88e48d493
parenta0d8c4cfdf31a9576f683628e50b76714c785ef1
usb: dwc3: gadget: Fix PCM1 for ISOC EP with ep->mult less than 3

For isochronous endpoints with ep->mult less than 3, PCM1 value of
trb->size in set incorrectly.
For ep->mult = 2, this is set to 0/-1 and for ep->mult = 1, this is
set to -2. This is because the initial mult is set to ep->mult - 1
instead of 2.

Signed-off-by: Manu Gautam <mgautam@codeaurora.org>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc3/gadget.c