Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 325845
b: refs/heads/master
c: a651684
h: refs/heads/master
i:
  325843: c957930
v: v3
  • Loading branch information
Kuninori Morimoto authored and Greg Kroah-Hartman committed Sep 5, 2012
1 parent c5220e6 commit b750ca1
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: 3735ba8db8e6ea22ad3ff524328926d8d780a884
refs/heads/master: a651684c100d47b34acb815d56c0c258565296dc
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 b750ca1

Please sign in to comment.