Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 316939
b: refs/heads/master
c: c4430a2
h: refs/heads/master
i:
  316937: b66fa3d
  316935: 4cb3e91
v: v3
  • Loading branch information
Felipe Balbi committed Jun 3, 2012
1 parent ebf6c89 commit f79a6ac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 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: fcc023c726b5879d8f3f0f0f48c45d09055272c4
refs/heads/master: c4430a26948b84c0d820e83f8c640229f960d3b6
7 changes: 2 additions & 5 deletions trunk/drivers/usb/dwc3/gadget.c
Original file line number Diff line number Diff line change
Expand Up @@ -1906,19 +1906,16 @@ static void dwc3_clear_stall_all_ep(struct dwc3 *dwc)

static void dwc3_gadget_disconnect_interrupt(struct dwc3 *dwc)
{
int reg;

dev_vdbg(dwc->dev, "%s\n", __func__);
#if 0
XXX
U1/U2 is powersave optimization. Skip it for now. Anyway we need to
enable it before we can disable it.

reg = dwc3_readl(dwc->regs, DWC3_DCTL);
reg &= ~DWC3_DCTL_INITU1ENA;
dwc3_writel(dwc->regs, DWC3_DCTL, reg);

reg &= ~DWC3_DCTL_INITU2ENA;
dwc3_writel(dwc->regs, DWC3_DCTL, reg);
#endif

dwc3_stop_active_transfers(dwc);
dwc3_disconnect_gadget(dwc);
Expand Down

0 comments on commit f79a6ac

Please sign in to comment.