projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
cf35fc3
)
usb: dwc3: gadget: simplify unaligned and zlp handling
author
Felipe Balbi
<felipe.balbi@linux.intel.com>
Thu, 29 Mar 2018 12:30:44 +0000
(15:30 +0300)
committer
Felipe Balbi
<felipe.balbi@linux.intel.com>
Mon, 21 May 2018 07:00:55 +0000
(10:00 +0300)
We can just call reclaim_trb_linear instead of reimplementing it.
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc3/gadget.c
patch
|
blob
|
history
diff --git
a/drivers/usb/dwc3/gadget.c
b/drivers/usb/dwc3/gadget.c
index
baf8913
..
7fa8b15
100644
(file)
--- a/
drivers/usb/dwc3/gadget.c
+++ b/
drivers/usb/dwc3/gadget.c
@@
-2314,7
+2314,6
@@
static void dwc3_gadget_ep_cleanup_completed_requests(struct dwc3_ep *dep,
const struct dwc3_event_depevt *event, int status)
{
struct dwc3_request *req, *n;
- struct dwc3_trb *trb;
int ret = 0;
list_for_each_entry_safe(req, n, &dep->started_list, list) {
@@
-2329,9
+2328,8
@@
static void dwc3_gadget_ep_cleanup_completed_requests(struct dwc3_ep *dep,
status);
if (req->unaligned || req->zero) {
- trb = &dep->trb_pool[dep->trb_dequeue];
- ret = dwc3_gadget_ep_reclaim_completed_trb(dep, req,
- trb, event, status, false);
+ ret = dwc3_gadget_ep_reclaim_trb_linear(dep, req, event,
+ status);
req->unaligned = false;
req->zero = false;
}