Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 265063
b: refs/heads/master
c: 0a85577
h: refs/heads/master
i:
  265061: 225fd84
  265059: a668c72
  265055: a6cacfe
v: v3
  • Loading branch information
Yoshihiro Shimoda authored and Felipe Balbi committed Oct 13, 2011
1 parent 1806302 commit 082d45b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 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: 276532ba9666b36974cbe16f303fc8be99c9da17
refs/heads/master: 0a85577627fc81936d3dbdfb349964024adcb01d
4 changes: 2 additions & 2 deletions trunk/drivers/usb/gadget/r8a66597-udc.c
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@ static void irq_ep0_write(struct r8a66597_ep *ep, struct r8a66597_request *req)
/* write fifo */
if (req->req.buf) {
if (size > 0)
r8a66597_write_fifo(r8a66597, ep->fifoaddr, buf, size);
r8a66597_write_fifo(r8a66597, ep, buf, size);
if ((size == 0) || ((size % ep->ep.maxpacket) != 0))
r8a66597_bset(r8a66597, BVAL, ep->fifoctr);
}
Expand Down Expand Up @@ -770,7 +770,7 @@ static void irq_packet_write(struct r8a66597_ep *ep,

/* write fifo */
if (req->req.buf) {
r8a66597_write_fifo(r8a66597, ep->fifoaddr, buf, size);
r8a66597_write_fifo(r8a66597, ep, buf, size);
if ((size == 0)
|| ((size % ep->ep.maxpacket) != 0)
|| ((bufsize != ep->ep.maxpacket)
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/usb/gadget/r8a66597-udc.h
Original file line number Diff line number Diff line change
Expand Up @@ -173,11 +173,11 @@ static inline void r8a66597_write(struct r8a66597 *r8a66597, u16 val,
}

static inline void r8a66597_write_fifo(struct r8a66597 *r8a66597,
unsigned long offset,
struct r8a66597_ep *ep,
unsigned char *buf,
int len)
{
void __iomem *fifoaddr = r8a66597->reg + offset;
void __iomem *fifoaddr = r8a66597->reg + ep->fifoaddr;
int adj = 0;
int i;

Expand Down

0 comments on commit 082d45b

Please sign in to comment.