Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 151383
b: refs/heads/master
c: 680cc64
h: refs/heads/master
i:
  151381: 84e68a3
  151379: 76e21c1
  151375: c47ec1e
v: v3
  • Loading branch information
Daniel Glöckner authored and Greg Kroah-Hartman committed Jun 16, 2009
1 parent c4f5b62 commit f35134b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2e25134122c25ebb0679b4bbd536fb46c669f9d7
refs/heads/master: 680cc64557101eaaca706dc9a1a0777f35aac0da
7 changes: 7 additions & 0 deletions trunk/drivers/usb/gadget/imx_udc.c
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,13 @@ static int write_packet(struct imx_ep_struct *imx_ep, struct imx_request *req)
u8 *buf;
int length, count, temp;

if (unlikely(__raw_readl(imx_ep->imx_usb->base +
USB_EP_STAT(EP_NO(imx_ep))) & EPSTAT_ZLPS)) {
D_TRX(imx_ep->imx_usb->dev, "<%s> zlp still queued in EP %s\n",
__func__, imx_ep->ep.name);
return -1;
}

buf = req->req.buf + req->req.actual;
prefetch(buf);

Expand Down

0 comments on commit f35134b

Please sign in to comment.