Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 361270
b: refs/heads/master
c: c390b03
h: refs/heads/master
v: v3
  • Loading branch information
Andrew Morton authored and Felipe Balbi committed Mar 8, 2013
1 parent ac75513 commit 1824daf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4b58ed11c681c0779c330f1aa5307b594943b683
refs/heads/master: c390b0363d6cc201db93de69b5e88f482322d821
7 changes: 4 additions & 3 deletions trunk/drivers/usb/dwc3/ep0.c
Original file line number Diff line number Diff line change
Expand Up @@ -891,7 +891,8 @@ static void __dwc3_ep0_do_control_data(struct dwc3 *dwc,
DWC3_TRBCTL_CONTROL_DATA);
} else if (!IS_ALIGNED(req->request.length, dep->endpoint.maxpacket)
&& (dep->number == 0)) {
u32 transfer_size;
u32 transfer_size;
u32 maxpacket;

ret = usb_gadget_map_request(&dwc->gadget, &req->request,
dep->number);
Expand All @@ -902,8 +903,8 @@ static void __dwc3_ep0_do_control_data(struct dwc3 *dwc,

WARN_ON(req->request.length > DWC3_EP0_BOUNCE_SIZE);

transfer_size = roundup(req->request.length,
(u32) dep->endpoint.maxpacket);
maxpacket = dep->endpoint.maxpacket;
transfer_size = roundup(req->request.length, maxpacket);

dwc->ep0_bounced = true;

Expand Down

0 comments on commit 1824daf

Please sign in to comment.