Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 133488
b: refs/heads/master
c: d24921a
h: refs/heads/master
v: v3
  • Loading branch information
Darius Augulis authored and Greg Kroah-Hartman committed Mar 24, 2009
1 parent 5f0c92c commit a4b636b
Show file tree
Hide file tree
Showing 2 changed files with 7 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: 593bef6c75e11d2edb5396bd9775cf49a4cda659
refs/heads/master: d24921a36df31332c32e1bb539671284d9e36bfa
12 changes: 6 additions & 6 deletions trunk/drivers/usb/gadget/imx_udc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1133,6 +1133,7 @@ static irqreturn_t imx_udc_irq(int irq, void *dev)
static irqreturn_t imx_udc_ctrl_irq(int irq, void *dev)
{
struct imx_udc_struct *imx_usb = dev;
struct imx_ep_struct *imx_ep = &imx_usb->imx_ep[0];
int intr = __raw_readl(imx_usb->base + USB_EP_INTR(0));

dump_ep_intr(__func__, 0, intr, imx_usb->dev);
Expand All @@ -1142,16 +1143,15 @@ static irqreturn_t imx_udc_ctrl_irq(int irq, void *dev)
return IRQ_HANDLED;
}

/* DEVREQ IRQ has highest priority */
/* DEVREQ has highest priority */
if (intr & (EPINTR_DEVREQ | EPINTR_MDEVREQ))
handle_ep0_devreq(imx_usb);
/* Seem i.MX is missing EOF interrupt sometimes.
* Therefore we monitor both EOF and FIFO_EMPTY interrups
* when transmiting, and both EOF and FIFO_FULL when
* receiving data.
* Therefore we don't monitor EOF.
* We call handle_ep0() only if a request is queued for ep0.
*/
else if (intr & (EPINTR_EOF | EPINTR_FIFO_EMPTY | EPINTR_FIFO_FULL))
handle_ep0(&imx_usb->imx_ep[0]);
else if (!list_empty(&imx_ep->queue))
handle_ep0(imx_ep);

__raw_writel(intr, imx_usb->base + USB_EP_INTR(0));

Expand Down

0 comments on commit a4b636b

Please sign in to comment.