Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 316937
b: refs/heads/master
c: 7acd85e
h: refs/heads/master
i:
  316935: 4cb3e91
v: v3
  • Loading branch information
Paul Zimmerman authored and Felipe Balbi committed Jun 3, 2012
1 parent a72b6b5 commit b66fa3d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 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: 802fde983e8a3391e059bd41fc272993ae642816
refs/heads/master: 7acd85e0eb2ed300edf123178445237059b35fb9
7 changes: 6 additions & 1 deletion trunk/drivers/usb/dwc3/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ static int __devinit dwc3_alloc_event_buffers(struct dwc3 *dwc, unsigned length)
*
* Returns 0 on success otherwise negative errno.
*/
static int __devinit dwc3_event_buffers_setup(struct dwc3 *dwc)
static int dwc3_event_buffers_setup(struct dwc3 *dwc)
{
struct dwc3_event_buffer *evt;
int n;
Expand All @@ -266,6 +266,8 @@ static int __devinit dwc3_event_buffers_setup(struct dwc3 *dwc)
evt->buf, (unsigned long long) evt->dma,
evt->length);

evt->lpos = 0;

dwc3_writel(dwc->regs, DWC3_GEVNTADRLO(n),
lower_32_bits(evt->dma));
dwc3_writel(dwc->regs, DWC3_GEVNTADRHI(n),
Expand All @@ -285,6 +287,9 @@ static void dwc3_event_buffers_cleanup(struct dwc3 *dwc)

for (n = 0; n < dwc->num_event_buffers; n++) {
evt = dwc->ev_buffs[n];

evt->lpos = 0;

dwc3_writel(dwc->regs, DWC3_GEVNTADRLO(n), 0);
dwc3_writel(dwc->regs, DWC3_GEVNTADRHI(n), 0);
dwc3_writel(dwc->regs, DWC3_GEVNTSIZ(n), 0);
Expand Down

0 comments on commit b66fa3d

Please sign in to comment.