diff options
author | Felipe Balbi <felipe.balbi@linux.intel.com> | 2016-04-06 10:01:14 +0300 |
---|---|---|
committer | Felipe Balbi <felipe.balbi@linux.intel.com> | 2016-04-19 11:11:52 +0300 |
commit | 8e7046b71daeb6dfbf8c6eaa164e55d4e1dcb5c8 (patch) | |
tree | 39fe5612b6f26495661f37c7f841576d450da105 /drivers/usb/dwc3 | |
parent | 052ba52efa1717651d303a9b88f2e8cbb91702c6 (diff) | |
download | op-kernel-dev-8e7046b71daeb6dfbf8c6eaa164e55d4e1dcb5c8.zip op-kernel-dev-8e7046b71daeb6dfbf8c6eaa164e55d4e1dcb5c8.tar.gz |
usb: dwc3: gadget: don't interrupt when chained
It makes no sense to interrupt in the middle of
chained transfer. This patch just makes sure we
don't do that.
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'drivers/usb/dwc3')
-rw-r--r-- | drivers/usb/dwc3/gadget.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c index c068a8f..88fd30b 100644 --- a/drivers/usb/dwc3/gadget.c +++ b/drivers/usb/dwc3/gadget.c @@ -804,7 +804,7 @@ static void dwc3_prepare_one_trb(struct dwc3_ep *dep, /* always enable Continue on Short Packet */ trb->ctrl |= DWC3_TRB_CTRL_CSP; - if (!req->request.no_interrupt) + if (!req->request.no_interrupt && !chain) trb->ctrl |= DWC3_TRB_CTRL_IOC | DWC3_TRB_CTRL_ISP_IMI; if (last) |