patch "usb: dwc3: gadget: fix ISOC TRB type on unaligned transfers" added to usb-linus
Subsystems (3)
This is a note to let you know that I've just added the patch titled
usb: dwc3: gadget: fix ISOC TRB type on unaligned transfers
to my usb git tree which can be found at
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git
in the usb-linus branch.
The patch will show up in the next release of the linux-next tree (usually sometime within the next 24 hours during the week.)
The patch will hopefully also be merged in Linus's tree for the next -rc kernel release.
If you have any questions about this process, please let me know.
Quoted 1 line
From
2fc6d4be35fb1e262f209758e25bfe2b7a113a7fMon Sep 17 00:00:00 2001
From: Felipe Balbi <[email protected]>
Date: Wed, 1 Aug 2018 09:37:34 +0300
Subject: usb: dwc3: gadget: fix ISOC TRB type on unaligned transfers
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.
--- drivers/usb/dwc3/gadget.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/usb/dwc3/gadget.c +3 -3
@@ -1081,7 +1081,7 @@ static void dwc3_prepare_one_trb_sg(struct dwc3_ep *dep,/* Now prepare one extra TRB to align transfer size */ trb = &dep->trb_pool[dep->trb_enqueue];__dwc3_prepare_one_trb (dep, trb, dwc->bounce_addr, - maxp - rem, false,0 , + maxp - rem, false,1 , req->request.stream_id, req->request.short_not_ok, req->request.no_interrupt);
@@ -1125,7 +1125,7 @@ static void dwc3_prepare_one_trb_linear(struct dwc3_ep *dep,/* Now prepare one extra TRB to align transfer size */ trb = &dep->trb_pool[dep->trb_enqueue];__dwc3_prepare_one_trb (dep, trb, dwc->bounce_addr, maxp - rem, - false,0 , req->request.stream_id, + false,1 , req->request.stream_id, req->request.short_not_ok, req->request.no_interrupt); } else if (req->request.zero && req->request.length &&
@@ -1141,7 +1141,7 @@ static void dwc3_prepare_one_trb_linear(struct dwc3_ep *dep,/* Now prepare one extra TRB to handle ZLP */ trb = &dep->trb_pool[dep->trb_enqueue];__dwc3_prepare_one_trb (dep, trb, dwc->bounce_addr,0 , - false,0 , req->request.stream_id, + false,1 , req->request.stream_id, req->request.short_not_ok, req->request.no_interrupt); }else {
Signature · 1 line
2.19.1