Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 322719
b: refs/heads/master
c: 77975ee
h: refs/heads/master
i:
  322717: c5077bc
  322715: 89a8fc0
  322711: 5933281
  322703: 181c293
  322687: e3fdb54
v: v3
  • Loading branch information
Kuninori Morimoto authored and Felipe Balbi committed Sep 6, 2012
1 parent d1931ab commit ee6aa8a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: f3bb8e63a8ee0398dffe412e774d8801db7e1bf1
refs/heads/master: 77975eec149506e457e6abe2ce43259895a9a16e
4 changes: 2 additions & 2 deletions trunk/drivers/usb/renesas_usbhs/fifo.c
Original file line number Diff line number Diff line change
Expand Up @@ -818,7 +818,7 @@ static int usbhsf_dma_prepare_push(struct usbhs_pkt *pkt, int *is_done)
usbhs_pipe_is_dcp(pipe))
goto usbhsf_pio_prepare_push;

if (len % 4) /* 32bit alignment */
if (len & 0x7) /* 8byte alignment */
goto usbhsf_pio_prepare_push;

if ((uintptr_t)(pkt->buf + pkt->actual) & 0x7) /* 8byte alignment */
Expand Down Expand Up @@ -905,7 +905,7 @@ static int usbhsf_dma_try_pop(struct usbhs_pkt *pkt, int *is_done)
/* use PIO if packet is less than pio_dma_border */
len = usbhsf_fifo_rcv_len(priv, fifo);
len = min(pkt->length - pkt->actual, len);
if (len % 4) /* 32bit alignment */
if (len & 0x7) /* 8byte alignment */
goto usbhsf_pio_prepare_pop_unselect;

if (len < usbhs_get_dparam(priv, pio_dma_border))
Expand Down

0 comments on commit ee6aa8a

Please sign in to comment.