Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 325974
b: refs/heads/master
c: 603fe2b
h: refs/heads/master
v: v3
  • Loading branch information
Ajay Kumar Gupta authored and Felipe Balbi committed Aug 3, 2012
1 parent 55c168f commit 75d585f
Show file tree
Hide file tree
Showing 2 changed files with 7 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: d17d535fec07dbd298b3f65838ec8d63c26ab360
refs/heads/master: 603fe2b21d9fcde2022f9b52d95027bea29fe9e3
6 changes: 6 additions & 0 deletions trunk/drivers/usb/musb/musb_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,9 @@ void musb_write_fifo(struct musb_hw_ep *hw_ep, u16 len, const u8 *src)
struct musb *musb = hw_ep->musb;
void __iomem *fifo = hw_ep->fifo;

if (unlikely(len == 0))
return;

prefetch((u8 *)src);

dev_dbg(musb->controller, "%cX ep%d fifo %p count %d buf %p\n",
Expand Down Expand Up @@ -276,6 +279,9 @@ void musb_read_fifo(struct musb_hw_ep *hw_ep, u16 len, u8 *dst)
struct musb *musb = hw_ep->musb;
void __iomem *fifo = hw_ep->fifo;

if (unlikely(len == 0))
return;

dev_dbg(musb->controller, "%cX ep%d fifo %p count %d buf %p\n",
'R', hw_ep->epnum, fifo, len, dst);

Expand Down

0 comments on commit 75d585f

Please sign in to comment.