Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 265051
b: refs/heads/master
c: 82828ca
h: refs/heads/master
i:
  265049: 1432c50
  265047: 77dd117
v: v3
  • Loading branch information
Paul Zimmerman authored and Greg Kroah-Hartman committed Oct 4, 2011
1 parent dcd0ca7 commit 2a05733
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 20 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: b23c843992b659d537514e6493d673284f5d6724
refs/heads/master: 82828ca77b8b63b817d9bb540145a4cafa9be582
19 changes: 0 additions & 19 deletions trunk/drivers/usb/dwc3/gadget.c
Original file line number Diff line number Diff line change
Expand Up @@ -1656,25 +1656,6 @@ static void dwc3_gadget_reset_interrupt(struct dwc3 *dwc)
reg = dwc3_readl(dwc->regs, DWC3_DCFG);
reg &= ~(DWC3_DCFG_DEVADDR_MASK);
dwc3_writel(dwc->regs, DWC3_DCFG, reg);

/*
* Wait for RxFifo to drain
*
* REVISIT probably shouldn't wait forever.
* In case Hardware ends up in a screwed up
* case, we error out, notify the user and,
* maybe, WARN() or BUG() but leave the rest
* of the kernel working fine.
*
* REVISIT the below is rather CPU intensive,
* maybe we should read and if it doesn't work
* sleep (not busy wait) for a few useconds.
*
* REVISIT why wait until the RXFIFO is empty anyway?
*/
while (!(dwc3_readl(dwc->regs, DWC3_DSTS)
& DWC3_DSTS_RXFIFOEMPTY))
cpu_relax();
}

static void dwc3_update_ram_clk_sel(struct dwc3 *dwc, u32 speed)
Expand Down

0 comments on commit 2a05733

Please sign in to comment.