Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 325969
b: refs/heads/master
c: d2e9a13
h: refs/heads/master
i:
  325967: dd2d75a
v: v3
  • Loading branch information
Chanho Park authored and Felipe Balbi committed Aug 31, 2012
1 parent 8d2c719 commit c42a29b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 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: 2a540edf7bb02f3e968d1ce7cb355e740ba7de13
refs/heads/master: d2e9a13a388304bc2a7b25a6c34c6e2ab1540a5d
10 changes: 8 additions & 2 deletions trunk/drivers/usb/dwc3/gadget.c
Original file line number Diff line number Diff line change
Expand Up @@ -439,8 +439,14 @@ static int dwc3_gadget_set_ep_config(struct dwc3 *dwc, struct dwc3_ep *dep,
memset(&params, 0x00, sizeof(params));

params.param0 = DWC3_DEPCFG_EP_TYPE(usb_endpoint_type(desc))
| DWC3_DEPCFG_MAX_PACKET_SIZE(usb_endpoint_maxp(desc))
| DWC3_DEPCFG_BURST_SIZE(dep->endpoint.maxburst - 1);
| DWC3_DEPCFG_MAX_PACKET_SIZE(usb_endpoint_maxp(desc));

/* Burst size is only needed in SuperSpeed mode */
if (dwc->gadget.speed == USB_SPEED_SUPER) {
u32 burst = dep->endpoint.maxburst - 1;

params.param0 |= DWC3_DEPCFG_BURST_SIZE(burst);
}

if (ignore)
params.param0 |= DWC3_DEPCFG_IGN_SEQ_NUM;
Expand Down

0 comments on commit c42a29b

Please sign in to comment.