From ee6aa8ae4fde9a72563a1435b54053210125d16a Mon Sep 17 00:00:00 2001 From: Kuninori Morimoto Date: Wed, 22 Aug 2012 18:01:13 -0700 Subject: [PATCH] --- yaml --- r: 322719 b: refs/heads/master c: 77975eec149506e457e6abe2ce43259895a9a16e h: refs/heads/master i: 322717: c5077bc87aef74054e51720198bdacaf62b4e5e4 322715: 89a8fc0f2494d4415294b0f5b776520d12f36be1 322711: 5933281af69b0862ebb31bb81a0d7a0cf3023968 322703: 181c29310fe0479fdb501d3e31582999b8258e1a 322687: e3fdb54ccc8758912e4801575379707324da7ff8 v: v3 --- [refs] | 2 +- trunk/drivers/usb/renesas_usbhs/fifo.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index eff17589cb0e..072114ccb37f 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: f3bb8e63a8ee0398dffe412e774d8801db7e1bf1 +refs/heads/master: 77975eec149506e457e6abe2ce43259895a9a16e diff --git a/trunk/drivers/usb/renesas_usbhs/fifo.c b/trunk/drivers/usb/renesas_usbhs/fifo.c index ecd173032fd4..143c4e9e1be4 100644 --- a/trunk/drivers/usb/renesas_usbhs/fifo.c +++ b/trunk/drivers/usb/renesas_usbhs/fifo.c @@ -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 */ @@ -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))