Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 185228
b: refs/heads/master
c: 4fdb31d
h: refs/heads/master
v: v3
  • Loading branch information
Enrico Scholz authored and Greg Kroah-Hartman committed Mar 2, 2010
1 parent aee3972 commit b2f13f6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 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: 2f0e40aba1cafe3a834bfcbac8f1e704d496dab9
refs/heads/master: 4fdb31d9665a9106190d9f8888cf06252c20f3ce
19 changes: 13 additions & 6 deletions trunk/drivers/usb/gadget/pxa27x_udc.c
Original file line number Diff line number Diff line change
Expand Up @@ -2218,19 +2218,26 @@ static void irq_handle_data(int irq, struct pxa_udc *udc)
continue;

udc_writel(udc, UDCISR0, UDCISR_INT(i, UDCISR_INT_MASK));
ep = &udc->pxa_ep[i];
ep->stats.irqs++;
handle_ep(ep);

WARN_ON(i >= ARRAY_SIZE(udc->pxa_ep));
if (i < ARRAY_SIZE(udc->pxa_ep)) {
ep = &udc->pxa_ep[i];
ep->stats.irqs++;
handle_ep(ep);
}
}

for (i = 16; udcisr1 != 0 && i < 24; udcisr1 >>= 2, i++) {
udc_writel(udc, UDCISR1, UDCISR_INT(i - 16, UDCISR_INT_MASK));
if (!(udcisr1 & UDCISR_INT_MASK))
continue;

ep = &udc->pxa_ep[i];
ep->stats.irqs++;
handle_ep(ep);
WARN_ON(i >= ARRAY_SIZE(udc->pxa_ep));
if (i < ARRAY_SIZE(udc->pxa_ep)) {
ep = &udc->pxa_ep[i];
ep->stats.irqs++;
handle_ep(ep);
}
}

}
Expand Down

0 comments on commit b2f13f6

Please sign in to comment.